Link to home
Start Free TrialLog in
Avatar of avernet
avernet

asked on

Tomcat: how to force all the logs to go in one file

A default installation of Tomcat logs things in admin.{date}.log, catalina.{date}.log, host-manager.{date}.log, manager.{date}.log, and localhost.{date}.log. How to change the configuration (I guess logs/logging.properties) to send everything in one file (say logs/tomcat.log), and always the same file (without the date in the file name)?

Alex
Avatar of manav_mathur
manav_mathur

Does this help??
http://tomcat.apache.org/tomcat-5.5-doc/logging.html

Scroll down some more for logs/logging.propertiers sample. You have to change all the prefixes to "tomcat"
ASKER CERTIFIED SOLUTION
Avatar of hubtech
hubtech

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
You can combine them into one common file by changing the prefix but you cannot do away with the date stamping.
Avatar of avernet

ASKER

All,

Thank you for the answers to this question.

Alex