See what happens if you capitalize the 'L' in rootLogger.

> -----Original Message-----
> From: Ryan Olson [mailto:[EMAIL PROTECTED]] 
> Sent: Friday, December 06, 2002 6:34 PM
> To: [EMAIL PROTECTED]
> Subject: Confused about log4j error message
> 
> 
> Hi,
> 
> My apologies if this is a FAQ, but I haven't turned up 
> anything on Google and 
> it looks like the mailing list archive search is broken 
> (keeps saying "Text 
> search is not available for this list").
> 
> I'm using Struts 1.1b and Tomcat 4.0.4. The first thing on 
> stdout when I start 
> up my struts application is
> 
> log4j:WARN No appenders could be found for logger 
> (org.apache.struts.util.PropertyMessageResources).
> log4j:WARN Please initialize the log4j system properly.
> 
> Now, I've read lots of documentation and book chapters on 
> using log4j and I 
> can't figure out what I'm doing wrong. I've got a 
> commons-logging.properties 
> file with the entry org.apache.commons.logging.Log= 
> org.apache.commons.logging.impl.Log4JCategoryLog. I've got a 
> log4j.properties 
> file in WEB-INF/classes copied from the simple configuration in Chuck 
> Cavaness' Struts book, which is supposed to direct everything 
> to the console:
> 
> log4j.rootlogger=INFO, stdout 
> log4j.appender.stdout=org.apache.log4j.ConsoleAppender
> log4j.appender.stdout.layout=org.apache.log4j.PatternLayout
> log4j.appender.stdout.layout.ConversionPattern=%5p [%t] (%F:%L) - %m%n
> 
> I have the log4j and commons-logging jars in my WEB-INF/lib directory.
> 
> What happens is that I get the warnings described above, and 
> none of my log 
> messages, created with log.error(), are visible. I'm 99% sure 
> that my use of 
> commons-logging is not the problem, since I do see log 
> messages when I use 
> the JDK 1.4 logging instead.
> 
> Any ideas? Thanks
> 
> Ryan Olson
> 
> 
> --
> To unsubscribe, e-mail:   
> <mailto:struts-user-> [EMAIL PROTECTED]>
> For 
> additional commands, 
> e-mail: <mailto:[EMAIL PROTECTED]>
> 


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

Reply via email to