|
With the following
configuration: #
All the .File parameters will be relative to the application's /WEB-INF/log/ # directory. #
Global logger will be the "general" logger log4j.rootLogger=INFO,
A2 log4j.rootLogger.additivity=false # This is logger for any general information we want to log log4j.appender.A2=org.apache.log4j.DailyRollingFileAppender log4j.appender.A2.MaxFileSize=2MB log4j.appender.A2.DatePattern='.'yyyy-MM-dd log4j.appender.A2.File=log.txt log4j.appender.A2.layout=org.apache.log4j.PatternLayout log4j.appender.A2.ConversionPattern=%d
[%t] %-5p %c - %m%n # This is where all the debug information will go to log4j.logger.debugger=DEBUG,
A1 log4j.debugger.additivity=false log4j.appender.A1=org.apache.log4j.DailyRollingFileAppender log4j.appender.A1.MaxFileSize=2MB log4j.appender.A1.DatePattern='.'yyyy-MM-dd log4j.appender.A1.File=debug.txt log4j.appender.A1.layout=org.apache.log4j.PatternLayout log4j.appender.A1.layout.ConversionPattern=%5p
(%F:%L) - %m%n How come when I use Logger.getLogger(âdebuggerâ).debug(âdebug stuffâ); The âdebug stuffâ appears in
log.txt (which is the root logger set on level INFO) ???? ---
|
- Log4j question Ivan Jouikov
- Log4j question Mufaddal Khumri
- Re: Log4j question Mufaddal Khumri
- RE: Log4j question Shapira, Yoav
- Re: Log4j question Mufaddal Khumri
- RE: Log4j question Shapira, Yoav
