J'ai utilisé log4j dans un programme java. J'initialisés avec:enregistrement répété dans le journal 4j en Java
BasicConfigurator.configure(); // logger configuration
try {
logger.setLevel(Level.DEBUG);
} catch (Exception e) {
System.out.println("Logfile not found");
}
Mais, lors de l'exécution du programme que je reçois 3 déclarations de journaux au lieu d'un. Par exemple,
3 lines
1047 [main] INFO ibis.Preproc.Ratings - Added AS TIMEZONE to tZones[0] = GMT-12:00
1047 [main] INFO ibis.Preproc.Ratings - Added AS TIMEZONE to tZones[0] = GMT-12:00
1047 [main] INFO ibis.Preproc.Ratings - Added AS TIMEZONE to tZones[0] = GMT-12:00
au lieu d'une ligne
1047 [main] INFO ibis.Preproc.Ratings - Added AS TIMEZONE to tZones[0] = GMT-12:00
Existe-t-il des configurations supplémentaires à faire pour log4j pour éviter cela?