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.--

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

所以单独配置了下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

目录
相关文章
|
Java Linux 应用服务中间件
|
Web App开发 Java 应用服务中间件
|
Web App开发 Java 应用服务中间件
|
Linux 应用服务中间件 Perl
|
Java 应用服务中间件 开发工具
|
XML 缓存 应用服务中间件
resin 服务器学习 配置 单点和 集群
  使用的 resin 4 服务器。   参考文档:   http://caucho.com/resin-4.0/     使用 rpm 进行安装 :     resin 是有收费版本的。使用的是开源版本。(不带 Pro 的版本)     下载地址:   http://www.caucho.com/download/   下载tar包   http://
1235 0