Hi Clement and David

Is the 2.0 rc1 version

this logback.xml


<?xml version="1.0" encoding="UTF-8"?>

<configuration>

<!-- standard output to console -->
<appender name="CONSOLE" class="ch.qos.logback.core.ConsoleAppender">
<encoder class="ch.qos.logback.core.encoder.LayoutWrappingEncoder">
<layout class="org.lsc.utils.output.LdifLayout">
<Pattern>%date{MMM dd HH:mm:ss} - %-5level - %message%n</Pattern>
</layout>
</encoder>
</appender>

<!-- log all application messages to the file /tmp/lsc.log -->
<!-- this file is rotated every 10000KB, compressed and 7 files are kept
for history -->
<appender name="LSC"
class="ch.qos.logback.core.rolling.RollingFileAppender">
<Append>true</Append>
<File>${LSC_HOME}/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>10000KB</MaxFileSize>
</triggeringPolicy>
</appender>

<!-- special logger to have a LDIF file of all modifications applied -->
<!-- this file is rotated every 10000KB, compressed and 7 files are kept
for history -->
<appender name="LDIF"
class="ch.qos.logback.core.rolling.RollingFileAppender">
<!--See also
http://logback.qos.ch/manual/appenders.html#RollingFileAppender-->
<Append>true</Append>
<File>/tmp/lsc.ldif</File>

<layout class="org.lsc.utils.output.LdifLayout">
<Pattern>%m%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.ldif.%i.gz</FileNamePattern>
<MinIndex>1</MinIndex>
<MaxIndex>7</MaxIndex>
</rollingPolicy>

<triggeringPolicy
class="ch.qos.logback.core.rolling.SizeBasedTriggeringPolicy">
<MaxFileSize>10000KB</MaxFileSize>
</triggeringPolicy>
</appender>

<!-- link log sources and log appenders -->
<logger name="communicationLogger" level="WARN">
<appender-ref ref="CONSOLE"/>
</logger>
<logger name="org.lsc" level="INFO">
<appender-ref ref="LSC"/>
</logger>
<logger name="lsc" level="INFO">
<appender-ref ref="LDIF"/>
</logger>
<logger name="org.apache" level="WARN">
<appender-ref ref="CONSOLE"/>
</logger>
<logger name="poolLogger" level="ERROR">
<appender-ref ref="CONSOLE"/>
</logger>
<root level="WARN">
<appender-ref ref="CONSOLE"/>
</root>
</configuration>

best regards

Miguel

On Fri, Sep 14, 2012 at 2:43 AM, Clément OUDOT <[email protected]> wrote:

> 2012/9/14 David Coutadeur <[email protected]>:
> >
> > Hi Migue,
> >
> > Your stacktrace seems to indicate that the problem is rather in your
> > logback.xml file than in your lsc.xml config file.
> > Maybe could you check it, or copy it there ?
> >
> > If you are at 2.0 version, you can check this section for more details
> > about the logging configuration :
> > http://lsc-project.org/wiki/documentation/2.0/configuration/logging
>
>
> That's right, it seems to be the LDIF logging configuration ->
> org.lsc.Configuration.setUpLdifLogging(Configuration.java:594)
>
> If you do not see the problem, send us the logback.xml file.
>
> Clément.
>



-- 

Ing. Miguel Angel Perez del rio
IEEE R9  ComSoc
_______________________________________________________________
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