Hi Mark,
I'm no expert at log4j, but from reading the comments in the configuration
file, I can see that you need to comment out one setting and uncomment
another for a start:
On 25 Oct 2007 at 9:19, Plant More Tree wrote:
> I am using appfuse 1.9.4 in Tomcat 6.0.14 and log4j-1.2.13.jar. Below is
> the /WEB-INF/classes/log4j.properties contain
>
> # This is the configuring for logging displayed in the Application Server
> log4j.rootCategory=INFO, stdout
Comment out the above line
> # Replace the line above if you want to put a log file into the directory
> # you start Tomcat from
> # log4j.rootCategory=INFO, stdout, R
Uncomment the above line - this will enable your "R" appender which
appears to be the one you pipe to a file further on.
> log4j.appender.stdout=org.apache.log4j.ConsoleAppender
> log4j.appender.stdout.layout=org.apache.log4j.PatternLayout
>
> # Pattern to output the caller's file name and line number.
> log4j.appender.stdout.layout.ConversionPattern=[stufftolet] %p [%t]
> %c{1}.%M(%L) | %m%n
>
> log4j.appender.R=org.apache.log4j.RollingFileAppender
>
> # You can change this to be an absolute path or even an environment variable
> # If you're using an environment variable, you will have to set JAVA_OPTS
> # to contain this variables - for example in the catalina.sh or catalina.bat
> # file
> log4j.appender.R.File=c:/apache/tomcat6/logs/stufftolet.log
The "R" in this is the one defined in line 5 of the configuration file, which
is
currently commented out.
HTH,
Rob Hills
Waikiki, Western Australia
Mobile +61 (412) 904-357
Fax: +61 (8) 9529-2137
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]