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) ????

 

 


Best Regards,

Ivan V. Jouikov
(206) 228-6670

 


---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.701 / Virus Database: 458 - Release Date: 07.06.2004

Reply via email to