struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Philip Mark Donaghy <gourmetj...@yahoo.com>
Subject RE: logs
Date Thu, 16 Oct 2003 15:51:59 GMT

--- "Gilbert, Antoine" <AGilbert@korem.com> wrote:
> can i use something like that ? directly ?
> 
> log4j.category.org.apache=DEBUG

I got this sample log4j.properties from the log4j
short manual.

# Set root logger level to DEBUG and its only appender
to A1.
log4j.rootLogger=DEBUG, 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

Of course this means that struts and your web
application will also display DEBUG messages.

Phil

> 
> -----Message d'origine-----
> De : Geeta Ramani [mailto:geeta.ramani@cmpco.com]
> Envoyé : 16 octobre, 2003 11:12
> À : Struts Users Mailing List
> Objet : Re: logs
> 
> 
> Maybe I misunderstand you (?), but all you have to
> do is (as usual) add lines
> in your log4j.properties file, something like:
> 
> log4j.category.yourpackagename.YourAction=DEBUG
> log4j.category.yourpackagename.YourForm=DEBUG
> 
> etc.
> Geeta
> 
> "Gilbert, Antoine" wrote:
> 
> > How i can configure my log4j.properties to log
> DEBUG info about my struts ?
> >
> >
>
---------------------------------------------------------------------
> > To unsubscribe, e-mail:
> struts-user-unsubscribe@jakarta.apache.org
> > For additional commands, e-mail:
> struts-user-help@jakarta.apache.org
> 
> 
>
---------------------------------------------------------------------
> To unsubscribe, e-mail:
> struts-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail:
> struts-user-help@jakarta.apache.org
> 
> 
>
---------------------------------------------------------------------
> To unsubscribe, e-mail:
> struts-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail:
> struts-user-help@jakarta.apache.org
> 


__________________________________
Do you Yahoo!?
The New Yahoo! Shopping - with improved product search
http://shopping.yahoo.com

---------------------------------------------------------------------
To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-user-help@jakarta.apache.org


Mime
View raw message