Javaプログラムでlog4jを使用しました。私はそれを初期化しました:ログ内でのログの繰り返しのログ4j
BasicConfigurator.configure(); // logger configuration
try {
logger.setLevel(Level.DEBUG);
} catch (Exception e) {
System.out.println("Logfile not found");
}
しかし、プログラムの実行中に私は1つではなく3つのログステートメントを取得します。たとえば、代わりに1行の
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
1047 [main] INFO ibis.Preproc.Ratings - Added AS TIMEZONE to tZones[0] = GMT-12:00
はこれを回避するためにlog4jに行われる余分な構成はありますか?