Apache: Tomcat setup log

From OnnoWiki
Jump to navigation Jump to search

Edit

vi /etc/tomcat9/server.xml


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

atau

<Valve className="org.apache.catalina.valves.AccessLogValve"
       directory="logs" 
       prefix="localhost_access_log."
       suffix=".txt"
       pattern="common" resolveHosts="false"/>


Pranala Menarik