Resin 4.0 配置accesslog

因为要查询日志,找问题。

所以单独配置了下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官方网站:

http://www.caucho.com/resin-4.0/admin/logging.xtp#accesslog

Resin 4.0 配置accesslog,布布扣,bubuko.com

Resin 4.0 配置accesslog

上一篇:SqlServer更新中文数据库显示乱码,更新内容有单引号


下一篇:MySQL类型转换注意事项