Run with -Dlog4j.debug to see more info about how log4j is trying to
configure itself.

On 7/5/06, Dmitry S. Kravchenko <[EMAIL PROTECTED]> wrote:


-----Original Message-----
From: Dmitry S. Kravchenko [mailto:[EMAIL PROTECTED]
Sent: Wednesday, July 05, 2006 6:04 PM
To: '[EMAIL PROTECTED]'
Subject: No appenders could be found for logger


Hi!

I don't understand, how to use log4j in Tomcat. It seems to me, that docs
and help are not reliable. For example, Category class ang getCategory
method marked deprected in fact, but described usable in quick start guide.

I have some servlets, I have some class with the following code in
constructor

if( logger == null ) {
//      BasicConfigurator.configure();
      logger = Logger.getLogger("MetSession");
    }

(logger is static)

and the following code for logging

logger.debug( prefix + message );

I have log4j-1.2.13.jar file in my C:\j2sdk1.4.2_10\jre\lib\ext directory,
and I have file log4j.properties in my WEB-INF/classes directory.

The content fo properties file is following

log4j.appender.file=org.apache.log4j.FileAppender
log4j.appender.file.File=/var/log/tomcat4/vtlog4j.log
log4j.appender.file.layout=org.apache.log4j.PatternLayout
log4j.appender.file.layout.ConversionPattern=[%c{1},%p] %m%n
log4j.appender.file.Append=true log4j.category.org.firebirdsql=DEBUG, file

So, it seems to me, that all is according to the manual.

But it prints warning

log4j:WARN No appenders could be found for logger
(org.apache.commons.digester.Digester).
log4j:WARN Please initialize the log4j system properly.

while starting Tomcat.

What does this warning mean? What should I do to fix it?

Thanks in advance.

Dims


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




--
James Stauffer
Are you good? Take the test at http://www.livingwaters.com/good/

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

Reply via email to