Back Forum Reply New

Logback access in DM Server?

I am trying to migrate a Tomcat app to DM Server 2.0.2.RELEASE. We currently use logback access logging as described here (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 (showthread.php?t=90578)?

2)  Add valve to tomcat config:

Code:
lt;Valve className=quot;ch.qos.logback.access.tomcat.LogbackValvequot;   filename=quot;/opt/-dm/config/logback-access.xmlquot;gt;
within an lt;Enginegt;  or lt;Hostgt; element.

3)  Create /opt/-dm/config/logback-access.xml file, such as:

Code:
lt;configurationgt;
lt;appender name=quot;FILEquot;   class=quot;ch.qos.logback.core.rolling.RollingFileAppenderquot;gt;   lt;Filegt;/opt/-dm/serviceability/logs/access.loglt;/Filegt;   lt;rollingPolicy     class=quot;ch.qos.logback.core.rolling.TimeBasedRollingPolicyquot;gt;     lt;FileNamePatterngt;access.%d{yyyy-MM-dd}.log.ziplt;/FileNamePatterngt;   lt;/rollingPolicygt;   lt;layout class=quot;ch.qos.logback.access.PatternLayoutquot;gt;     ltatterngt;combinedlt;/Patterngt;   lt;/layoutgt; lt;/appendergt;
lt;appender-ref ref=quot;FILEquot; /gt;

lt;/configurationgt;
¥
Back Forum Reply New