There are log files in /tomcat/logs/ directory what happen whenever i hit page then datewise log file is created and also the size of catalina.out file is increase acoording to hit page, due to this my server take extra space for this, so is there any solution that log file will not generate everytime.
Which file is growing? If it's an access log, then that's what it's supposed to do. If it's catalina.out, std.out, err.out, or something similar, each entry is due to a System.out.println(), e.printStackTrace() or similar in your code. Remove those and the output will stop.
Logging has changed over time in Tomcat. Which version are you using, what OS and, if Windows, is it installed as a service? Also, what exactly are the names of the files in the logs directory. Answer these and I can probably help you quiet them down.
I m using Tomcat 5.0.27 and OS is windows-98 and files generated are date wise in logs directory means for each date it generate one log file, similar catalina.out size also increase same time so for this what shoul i do to prevent them.
I have a question related to this topic. I am using tomcat 5.0.27 and my catalina.out is not cleaned/rollup and the size became around 1gb. Is there any way so that catalina.out will be cleaned automatically? Is there any property in logger.properties or server.xml which I can use?