[logback-user] Why am I only seeing one log generated?
Samuel Doyle
sdoyle_2 at yahoo.com
Wed Jan 17 00:21:38 CET 2007
Hi,
In my following properties file only the first logfile (bitranlog) gets generated and output directed to that. Should the one for the soccslog be generated as well from the SOCCSService class?
Thanks, S.D.
----
<?xml version="1.0" encoding="UTF-8"?>
<configuration>
<appender name="STDOUT" class="ch.qos.logback.core.ConsoleAppender">
<layout class="ch.qos.logback.classic.PatternLayout">
<param name="pattern" value="%-4relative [%thread] %-5level %class - %msg%n" />
</layout>
</appender>
<appender name="bitranlog" class="ch.qos.logback.core.rolling.RollingFileAppender">
<rollingPolicy class="ch.qos.logback.core.rolling.TimeBasedRollingPolicy">
<param name="FileNamePattern" value="bitran_%d{yyyy-MM}.log.gz" />
<param name="ActiveFileName" value="/var/log/smartcorridors/bitran.log" />
</rollingPolicy>
<layout class="ch.qos.logback.classic.PatternLayout">
<param name="pattern" value="%-4relative [%thread] %-5level %class - %msg%n" />
</layout>
</appender>
<logger name="org.accma.concentrator.services.bitran.BiTranService">
<level value="debug"/>
<appender-ref ref="bitranlog"/>
</logger>
<appender name="soccslog" class="ch.qos.logback.core.rolling.RollingFileAppender">
<rollingPolicy class="ch.qos.logback.core.rolling.TimeBasedRollingPolicy">
<param name="FileNamePattern" value="soccs_%d{yyyy-MM}.log.gz" />
<param name="ActiveFileName" value="/var/log/smartcorridors/soccs.log" />
</rollingPolicy>
<layout class="ch.qos.logback.classic.PatternLayout">
<param name="pattern" value="%-4relative [%thread] %-5level %class - %msg%n" />
</layout>
</appender>
<logger name="org.accma.concentrator.services.soccs.SOCCSService">
<level value="debug"/>
<appender-ref ref="soccslog"/>
</logger>
<root>
<level value="debug" />
<appender-ref ref="STDOUT" />
</root>
</configuration>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://qos.ch/pipermail/logback-user/attachments/20070116/c3b22773/attachment.htm
More information about the Logback-user
mailing list