Re: How to configure log in tomcat web server
Posted By:
vinuth_t
Posted On:
Wednesday, January 21, 2004 01:21 AM
There is a Logger element which you can use to create ur own log messages.
U can choose three ways of outputting
1)Log messages written to file
2)Log messages written to standard error stream
3)Log messages written to standard output stream
Lets look at configuring logger for file
timestamp="true"/>
This logger tag can be put under Engine tag in server.xml
or it can be put under Host tag in server.xml
Here u can change the prefix and suffix to what ever
suitable also optionally u have one more attribute called
directory where u can specify the directory name to place
the log files for this relative or absolute path may be
used wrt CATALINA_HOME