Hi Yes, of course. But it still doesn't work, sorry...
Regards, Pierre 2006/11/23, Gaurav Kushwaha <[EMAIL PROTECTED]>:
I am not sure if putting log4j.properties in WEB-INF will work. It has to be in the classpath. So he will need to put it in WEB-INF/classes. On 11/23/06, Andrew Stepanenko <[EMAIL PROTECTED]> wrote: > > I'm not sure about this line: > > log4j.rootLogger=WARN,monAppender > > In my log4j.properties it is: > log4j.rootCategory=info, stdout, file > > Also I don't use commons-logging.properties in my setup. In 5.0.28 and > 5.5.17 it worked well. Try putting log4j.properties also in > YOUR_WEBAPP\WEB-INF directory. > As you want to specify WARN for root category, probably you won't see > much log msgs. I mean that you won't see info() and debug(). > > Andrew. > > > On 11/22/06, Pierre Goupil <[EMAIL PROTECTED]> wrote: > > No, no way... I've put this in commons-logging.properties : > > > > > org.apache.commons.logging.Log=org.apache.commons.logging.impl.Log4JLogger > > > > > org.apache.commons.logging.simplelog.log.org.apache.commons.digester.Digester=debug > > > > > org.apache.commons.logging.simplelog.log.org.apache.commons.digester.Digester.sax=info > > > > > > > > > > and this in log4j.properties : > > > > #définition du niveau et des Appender du rootLogger > > log4j.rootLogger=WARN,monAppender > > > > #configuration de "monAppender" > > #nous allons envoyer les messages dans la console de Tomcat > > log4j.appender.monAppender=org.apache.log4j.ConsoleAppender > > > > #définition du Layout pour "monAppender" > > log4j.appender.monAppender.layout=org.apache.log4j.PatternLayout > > > > #définition du pattern d'affichage pour "monAppender" > > #voici un exemple de sortie que l'on va obtenir : 2005-06-18 14:53:37 > DEBUG > > [Main] Hello World > > log4j.appender.monAppender.layout.ConversionPattern=%d{MM-dd HH:mm:ss} > %-5p > > [%c{1}] %m%n > > > > > > Is this correct ? > > > > Regards, > > > > > > Pierre > > > > > > > > > Gaurav Singh Kushwaha http://www.chakpak.com Ph: +91-9880101496 Bangalore, India.
-- "L'une des raisons pour lesquelles la vie est complexe C'est qu'elle a une partie réelle et une partie imaginaire."