Tomcat has a set of 7 log files, not including the application logs that the applications it hosts, write. The default location to which Tomcat writes its logs is $CATALINA_HOME\logs, which is set during installation. There may be instances when you would need to change the location to which Tomcat writes its logs to. This may be applicable in different cases -
- In small to medium scale installations, where the default directory has got full and you need to write to another location
- In large scale installations, wherein you are maintaining a separate share (SAN/NAS) for logging and would want to change to a new partition as matter of a set policy
The change of directory is not as simple as it may seem for all log types. There is not much available on the net for this, so I dissected the issue in detail and have written a paper on the same. Please refer to the below link for details:
Changing Tomcat Logs Directory
No comments:
Post a Comment