配置tomcat容器的access.log访问日志
本帖最后由 lqph3387 于 2010-12-14 15:03 编辑
编译server.xml文件,在
<Host name="localhost" appBase="webapps"
unpackWARs="true" autoDeploy="true"
xmlValidation="false" xmlNamespaceAware="false">
下追加如下信息:
<Valve className="org.apache.catalina.valves.AccessLogValve" directory="logs"
prefix="localhost_access." suffix=".log" pattern="combined" resolveHosts="false"/>
编译server.xml文件,在
<Host name="localhost" appBase="webapps"
unpackWARs="true" autoDeploy="true"
xmlValidation="false" xmlNamespaceAware="false">
下追加如下信息:
<Valve className="org.apache.catalina.valves.AccessLogValve" directory="logs"
prefix="localhost_access." suffix=".log" pattern="combined" resolveHosts="false"/>
none