Hi,
we use this instructions to log to a file. Sounds a bit complicated, but
should work:
Follow the following steps to setup a file named tomcat.log that has
internal Tomcat logging output to it:
1. Create a file called log4j.properties with the following content and
save it into common/classes.
2.
log4j.rootLogger=warn, R
log4j.appender.R=org.apache.log4j.RollingFileAppender
log4j.appender.R.File=${catalina.home}/logs/tomcat.log
log4j.appender.R.MaxFileSize=10MB
log4j.appender.R.MaxBackupIndex=10
log4j.appender.R.layout=org.apache.log4j.PatternLayout
log4j.appender.R.layout.ConversionPattern= ?p ?t ?c - ?m?n
log4j.logger.org.apache.catalina=DEBUG, R
3. The log4j.jar and commons-loggin.jar will be put into your
$CATALINA_HOME/common/lib when you get the latest version of the
website_config libs (towards the end of this setup).
4. Install Commons Logging and place the commons-logging.jar (not
commons-logging-api.jar) in $CATALINA_HOME/common/lib with the log4j jar.
5. Start Tomcat
This log4j configuration sets up a file called tomcat.log in your Tomcat
logs folder with a maximum file size of 10MB and up to 10 backups. DEBUG
level is specified which will result in the most verbose output from Tomcat.
> -----Urspr�ngliche Nachricht-----
> Von: news [mailto:[EMAIL PROTECTED] Auftrag von teknokrat
> Gesendet: Mittwoch, 30. M�rz 2005 11:54
> An: [email protected]
> Betreff: possibly stupid question
>
>
> I am running tomcat 5.5 on windows XP. There is no catalina.out file
> being produced. Is this usual? How do i get a file of of everything
> going to stdout?
>
> thanks
>
>
> ---------------------------------------------------------------------
> 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]