Tomcat Logging

BlueSpud

Registered User
Messages
879
I am using Tomcat 5.0.19 and I am having trouble with logging. Virtually all of the logging info goes directly to CATALINA.OUT, and I can't redirect it. In Tomcat 4.1.24, I could re-assign the output with:

<Logger className="org.apache.catalina.logger.FileLogger" directory="logs" prefix="localhost_log." suffix=".txt" timestamp="true" />

and I could reassign the output for individual contexts by placing a similar block within the context:

<Logger className="org.apache.catalina.logger.FileLogger" directory="logs" prefix="MyContext." suffix=".txt" timestamp="true" />

I am now using Tomcat 5.0.19, and no matter what I do, I can't redirect the user logging. All help appreciated.

Regards, Bluespud.