0
Logger alog = Logger.getLogger("auditLogger");


alog.debug("to test audit logger in main screen");

のようなエラーメッセージが表示されています

log4j:ERROR Could not find value for key log4j.appender.debug

SEVERE:   log4j:ERROR Could not instantiate appender named "debug".

SEVERE:   log4j:ERROR Could not find value for key log4j.appender.debug

SEVERE:   log4j:ERROR Could not instantiate appender named "debug".

log4j.properties

log4j.appender.Customer1audit=org.apache.log4j.RollingFileAppender
log4j.appender.Customer1audit.File=C:\\OpsConsole\\21-05-2013\\IOpsConsole\\logs\\Cus‌​tomer1audit.log
log4j.appender.Customer1audit.MaxFileSize=100KB
log4j.appender.Customer1audit.MaxBackupIndex=1
log4j.appender.Customer1audit.layout=org.apache.log4j.PatternLayout
log4j.logger.‌​customer1auditLogger=info,debug,Customer1audit
4

1 に答える 1