I am trying to migrate a Tomcat app to DM Server 2.0.2.RELEASE. We currently use logback access logging as described here (http://logback.qos.ch/access.html).
Does anyone have any knowledge/experience with integrating logback access into DM Server?
The most problematic looking step to me initially appears to be the first among the draft steps I've created below:
1) logback-core-0.9.x.jar and logback-access-0.9.x.jar are typically placed in $TOMCAT_HOME/server/lib/. How do we do the comparable in DM Server to make them available to the tomcat bundle? A fragment (http://forum.springsource.org/showthread.php?t=90578)?
2) Add valve to tomcat config:
within an <Engine> or <Host> element.Code:<Valve className="ch.qos.logback.access.tomcat.LogbackValve" filename="/opt/springsource-dm/config/logback-access.xml">
3) Create /opt/springsource-dm/config/logback-access.xml file, such as:
Code:<configuration> <appender name="FILE" class="ch.qos.logback.core.rolling.RollingFileAppender"> <File>/opt/springsource-dm/serviceability/logs/access.log</File> <rollingPolicy class="ch.qos.logback.core.rolling.TimeBasedRollingPolicy"> <FileNamePattern>access.%d{yyyy-MM-dd}.log.zip</FileNamePattern> </rollingPolicy> <layout class="ch.qos.logback.access.PatternLayout"> <Pattern>combined</Pattern> </layout> </appender> <appender-ref ref="FILE" /> </configuration>


