J
Joerg Lensing
Hi ng,
I want to disable the output to the console when logging to file. See
config-file below:
log4j.rootLogger=INFO, A1
log4j.logger.de.softcon.webcontrol.presentation=DEBUG,A3
log4j.logger.com.cappuccinonet.strutscx=WARN
log4j.logger.org.apache=WARN
log4j.appender.A1=org.apache.log4j.ConsoleAppender
log4j.appender.A1.layout=org.apache.log4j.PatternLayout
log4j.appender.A1.layout.ConversionPattern=%d %-5p - %m%n
log4j.appender.A3=org.apache.log4j.FileAppender
log4j.appender.A3.File=C:\\joergslog2.log
log4j.appender.A3.layout=org.apache.log4j.PatternLayout
log4j.appender.A3.layout.ConversionPattern=<userClick time="%d" thread="%t" %m />%n
I call the log by:
Logger debugLogger = Logger.getLogger("de.softcon.webcontrol.presentation");
debugLogger.debug("some logging output");
How can I disable the output to console(System.out)??
tx joerg
I want to disable the output to the console when logging to file. See
config-file below:
log4j.rootLogger=INFO, A1
log4j.logger.de.softcon.webcontrol.presentation=DEBUG,A3
log4j.logger.com.cappuccinonet.strutscx=WARN
log4j.logger.org.apache=WARN
log4j.appender.A1=org.apache.log4j.ConsoleAppender
log4j.appender.A1.layout=org.apache.log4j.PatternLayout
log4j.appender.A1.layout.ConversionPattern=%d %-5p - %m%n
log4j.appender.A3=org.apache.log4j.FileAppender
log4j.appender.A3.File=C:\\joergslog2.log
log4j.appender.A3.layout=org.apache.log4j.PatternLayout
log4j.appender.A3.layout.ConversionPattern=<userClick time="%d" thread="%t" %m />%n
I call the log by:
Logger debugLogger = Logger.getLogger("de.softcon.webcontrol.presentation");
debugLogger.debug("some logging output");
How can I disable the output to console(System.out)??
tx joerg