Tomcat error's in another log file
1 posts in topic
Flat View  Flat View

Posted By:   Scott_Pezanowski
Posted On:   Friday, October 12, 2001 05:16 PM

The default for Tomcat has the error's generated in the same window as Tomcat is running. They scroll by and I can not see what the whole message is. How do I configure Tomcat so that my error messages come up in a file named error.log? I think I must edit startup.bat but I do not know what to put here.

Thank you

Re: Tomcat error's in another log file

Posted By:   AlessandroA_Garbagnati  
Posted On:   Saturday, October 13, 2001 08:35 AM


The reason why you are getting the error message on the console and not on a file is because the default configuration of the tomcat.log file is set to be redirected to the console, instead of a file.

To change this you don't need to edit the startup.bat or startup.sh file, but the server configuration file, that is located under the conf directory, normally named server.xml.

As stated in the top of the file:



So, you just have to change the lines below this comment to something like this:

verbosityLevel = "INFORMATION" />

If you read the top of this configuration file, there are also some interesting information on how to handle the location of all the log files.
About | Sitemap | Contact