How to configure log in tomcat web server
1 posts in topic
Flat View  Flat View

Posted By:   balaji_A
Posted On:   Tuesday, January 20, 2004 10:37 PM

How to configure log in tomcat web server.
The log file should be of my own.

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


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


About | Sitemap | Contact