Hi Hugh,

It should be the way you described - and LSC already include the logback
jar library (you can check it inside the lib subdirectory). May I kindly
suggest that you take a look at the following page :
http://logback.qos.ch/manual/appenders.html#RollingFileAppender and try to
switch to a TimeBasedRollingPolicy ? It seems that there may be issues on
Windows systems regarding the FixedWindowRollingPolicy because of the
exclusive locking system.

Regards,
-- 
Sebastien BAHLOUL
IAM / Security specialist
Ldap Synchronization Connector : http://lsc-project.org
Blog : http://sbahloul.wordpress.com/



2012/5/15 Hugh Kelley <[email protected]>

> Given the following,  my lsc.log is deleted at the 100k even, but I do not
> see the compressed previous log file.   Is there a jar file needed for
> this?   I am running under Windows Server 2008 R2 with JRE version
> "1.7.0_04"
>
>     <appender name="LSC"
> class="ch.qos.logback.core.rolling.RollingFileAppender">
>         <Append>true</Append>
>         <File>c:/lsc/logs/lsc.log</File>
>
>         <layout class="org.lsc.utils.output.LdifLayout">
>             <Pattern>%date{MMM dd HH:mm:ss} - %-5level -
> %message%n</Pattern>
>         </layout>
>
>         <filter class="ch.qos.logback.classic.filter.ThresholdFilter">
>             <level>INFO</level>
>         </filter>
>
>         <rollingPolicy
> class="ch.qos.logback.core.rolling.FixedWindowRollingPolicy">
>             <FileNamePattern>lsc.log.%i.gz</FileNamePattern>
>             <MinIndex>1</MinIndex>
>             <MaxIndex>7</MaxIndex>
>         </rollingPolicy>
>
>         <triggeringPolicy
> class="ch.qos.logback.core.rolling.SizeBasedTriggeringPolicy">
>             <MaxFileSize>100KB</MaxFileSize>
>         </triggeringPolicy>
>     </appender>
>
> Does anybody else have this working?
>
> _______________________________________________________________
> Ldap Synchronization Connector (LSC) - http://lsc-project.org
>
> lsc-users mailing list
> [email protected]
> http://lists.lsc-project.org/listinfo/lsc-users
>
>
_______________________________________________________________
Ldap Synchronization Connector (LSC) - http://lsc-project.org

lsc-users mailing list
[email protected]
http://lists.lsc-project.org/listinfo/lsc-users

Reply via email to