Re: logs

2003-10-16 Thread Philip Mark Donaghy
When I put a log4j.properties in my
TOMCAT4_HOME/shared/classes directory the console went
wild.

This could help if you are debugging Tomcat and your
application.

Phil


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

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



RE: logs

2003-10-16 Thread Philip Mark Donaghy

--- "Gilbert, Antoine" <[EMAIL PROTECTED]> 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:[EMAIL PROTECTED]
> 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:
> [EMAIL PROTECTED]
> > For additional commands, e-mail:
> [EMAIL PROTECTED]
> 
> 
>
-
> To unsubscribe, e-mail:
> [EMAIL PROTECTED]
> For additional commands, e-mail:
> [EMAIL PROTECTED]
> 
> 
>
-
> To unsubscribe, e-mail:
> [EMAIL PROTECTED]
> For additional commands, e-mail:
> [EMAIL PROTECTED]
> 


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

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



Re: logs

2003-10-16 Thread Geeta Ramani
Well, as long as the appropraite debug lines exist in the code itself (or you add
it and then recompile, rejar, etc.etc.), I'd guess that would work..:)

"Gilbert, Antoine" wrote:

> can i use something like that ? directly ?
>
> log4j.category.org.apache=DEBUG
>
> -Message d'origine-
> De : Geeta Ramani [mailto:[EMAIL PROTECTED]
> 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: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]


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



RE: logs

2003-10-16 Thread Gilbert, Antoine
can i use something like that ? directly ?

log4j.category.org.apache=DEBUG

-Message d'origine-
De : Geeta Ramani [mailto:[EMAIL PROTECTED]
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: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]


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


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



Re: logs

2003-10-16 Thread Geeta Ramani
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: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]


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