Resin 4.0 配置accesslog
程序员文章站
2024-02-21 17:08:58
...
因为要查询日志,找问题。
所以单独配置了下resin的access日志。
<resin xmlns="http://caucho.com/ns/resin"
xmlns:resin="urn:java:com.caucho.resin">
<!--- Logging configuration for the JDK logging API.-->
<log-handler name="" level="info" path="stdout:"
timestamp="[%y-%m-%d %H:%M:%S.%s] {%{thread}} "/>
<stdout-log path-format="log/stdout.log.%Y%m%d" rollover-period="1D"/>
<stderr-log path-format="log/stderr.log.%Y%m%d" rollover-period="1D"/>
<!--- level='info' for production - 'fine' or
'finer' for development and troubleshooting-->
<logger name="com.caucho" level="info"/>
<logger name="com.caucho.java" level="config"/>
<logger name="com.caucho.loader" level="config"/>
<!--- driver .jar files can be placed in ${resin.root}/ext-lib-->
<class-loader>
<tree-loader path="${resin.root}/ext-lib"/>
</class-loader>
<character-encoding>utf-8</character-encoding>
<cluster-default>
<resin:import path="${__DIR__}/app-default.xml"/>
</cluster-default>
<cluster id="">
<server id="">
<jvm-arg>-Xmx1024m</jvm-arg>
<http port="8080"/>
<watchdog-port>6700</watchdog-port>
</server>
<host id="" root-directory=".">
<access-log path-format='log/access.log.%Y%m%d'>
<rollover-period>1D</rollover-period>
</access-log>
<web-app id="/" root-directory="/opt/cms/webapp"/>
</host>
</cluster>
</resin>
配置access。
参考resin官方网站:
转载于:https://my.oschina.net/victorlovecode/blog/344590
上一篇: 可能会用到
下一篇: 一些常用的工具性脚本和配置