I apologize in advance for yet another logging question to the group, but 
I cannot get this to work. I am getting anything and everything printing 
to my console. I couldn't seem to make logging level changes using the 
default SimpleLog, so today I moved on to Log4j. I am using Struts 1.1b3, 
and J2SE 1.3.x.

1) downloaded the most recent Log4j.zip
2) put the log4j-1.2.7.jar in my WEB-INF/lib folder.
3) rebuilt my web project.
4) created two properties files ( WEB-INF/classes) ... 
commons-logging.properties and log4j.properties
5) added to commons-logging.properties
    org.apache.commons.logging.LogFactory=org.apache.commons.logging.impl.Log4jFactory

6) added to log4j.properties (just like everyone else)
   # Set root logger level to DEBUG and its only appender to A1.
   log4j.rootLogger=WARN,A1

   # A1 is set to be a ConsoleAppender.
   log4j.appender.A1=org.apache.log4j.ConsoleAppender

   # A1 uses PatternLayout.
   log4j.appender.A1.layout=org.apache.log4j.PatternLayout
   log4j.appender.A1.layout.ConversionPattern=%-4r [%t] %-5p %c %x - %m%n

   log4j.logger.org.apache.struts=WARN

7) restarted my server instance and tried my web application (over and 
over again). 

I think I have been through every logging related message in the archives 
and all the docs on line, but I absolutely don't see what I am forgetting. 
I hope someone else can shed some light on this.

Thanks,

Susan Bradeen
[EMAIL PROTECTED]


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to