Quelqu'un peut-il me dire où et comment j'ai configuré path
en Netbeans
? Je voudrais ajouter un fichier .propertiesComment configurer le chemin dans Netbeans?
Je projet log4j exemple que does't voit fichier log4j.properties:
log4j:WARN No appenders could be found for logger (log4j_lesson.log4jExample).
log4j:WARN Please initialize the log4j system properly.
Classe principale:
import org.apache.log4j.Logger;
import java.io.*;
import java.sql.SQLException;
import java.util.*;
public class log4jExample{
/* Get actual class name to be printed on */
static Logger log = Logger.getLogger(
log4jExample.class.getName());
public static void main(String[] args)
throws IOException,SQLException{
log.debug("Hello this is an debug message");
log.info("Hello this is an info message");
}
}