How to off tomcat log file

By ukmodak | March 31st 2024 10:34:01 AM | viewed 61 times

How to off tomcat log file

go to location .../tomcat/conf/> and edit "server.xml" and comment the following line as bellow:

 <!--Valve className="org.apache.catalina.valves.AccessLogValve" directory="logs"
               prefix="localhost_access_log" suffix=".txt"
               pattern="%h %l %u %t "%r" %s %b" /-->

go to location .../tomcat/conf/> and edit "logging.properties" and comment the following line as bellow:

#handlers = 1catalina.org.apache.juli.AsyncFileHandler, 2localhost.org.apache.juli.AsyncFileHandler, 3manager.org.apache.juli.AsyncFileHandler, 4host-manager.org.apache.juli.AsyncFileHandler, java.util.logging.ConsoleHandler

go to location .../tomcat/logs> and delete all file

go to location .../tomcat/bin/> and enter "catalina.bat run"

bONEandALL
Visitor

Total : 28003

Today :14

Today Visit Country :

  • Czechia
  • Canada
  • United States
  • Germany
  • Singapore