Hi Laurent,
I use log4j and the following log4j.properties file to achieve this.
It gets the framework logging to one file (ie. struts) and my application logging to
another file....
Can change the levels for each as desired as Struts put out a hefty chunk at debug
level... but very useful...
Hope it's of some help
Contents of my log4j.properties
__________________________________
log4j.debug=true
#----------------------------------------------------
# set root Category priority to DEBUG and it's only Appender to "file2"
log4j.rootCategory=DEBUG, file1
# Ensures uk.co.landmark logging does not also get added to the root log category
log4j.additivity.uk.co.landmarkinfo=false
log4j.logger.uk.co.landmarkinfo=DEBUG, file2
# "file1" RollingFileAppender options
log4j.appender.file1=org.apache.log4j.RollingFileAppender
log4j.appender.file1.Threshold=DEBUG
log4j.appender.file1.ImmediateFlush=true
log4j.appender.file1.File=/usr/tomcat/logs/framework_stl.log
log4j.appender.file1.MaxFileSize=850KB
log4j.appender.file1.MaxBackupIndex=1
# "file2" uses a Pattern Layout
log4j.appender.file1.layout=org.apache.log4j.PatternLayout
log4j.appender.file1.layout.ConversionPattern=%d{dd-MMM HH:mm:ss} %-5p %t%x [%C{1}.%M]
%m%n
# "file2" RollingFileAppender options
log4j.appender.file2=org.apache.log4j.RollingFileAppender
log4j.appender.file2.Threshold=DEBUG
log4j.appender.file2.ImmediateFlush=true
log4j.appender.file2.File=/usr/tomcat/logs/stl.log
log4j.appender.file2.MaxFileSize=850KB
log4j.appender.file2.MaxBackupIndex=1
# "file2" uses a Pattern Layout
log4j.appender.file2.layout=org.apache.log4j.PatternLayout
log4j.appender.file2.la
-----Original Message-----
From: news [mailto:[EMAIL PROTECTED] Behalf Of Laurent Duperval
Sent: 06 October 2004 15:18
To: [EMAIL PROTECTED]
Subject: Tracing action dispatching
Hi,
Is there a flag I can set so that Struts tells me what it's doing? I'm
having a problem with one of my actions: when I click on it, I get a blank
page and I don't understand why. I'd like to be able to see what decisions
Sruts is taking in order to load my pages, to determine where I made a
mistake in my config.
Thanks,
L
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
====================================================================
This e-mail and any attachments may be confidential and/or legally
privileged. If you have received this e-mail and you are not a named
addressee, please inform Landmark Information Group on 01491 413030
and then delete the e-mail from your system. If you are not a named
addressee you must not use, disclose, distribute, copy, print or rely
on this e-mail. This email and any attachments have been scanned for
viruses and to the best of our knowledge are clean. To ensure
regulatory compliance and for the protection of our clients and
business, we may monitor and read e-mails sent to and from our
servers.
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]