<html><body><div style="font-family: verdana,helvetica,sans-serif; font-size: 10pt; color: #000000"><div><span style="font-size: 10pt;">Hello to all,</span></div><div style="color:#000;font-weight:normal;font-style:normal;text-decoration:none;font-family:Helvetica,Arial,sans-serif;font-size:12pt;"><div style="font-family: verdana,helvetica,sans-serif; font-size: 10pt; color: #000000"><div style="color:#000;font-weight:normal;font-style:normal;text-decoration:none;font-family:Helvetica,Arial,sans-serif;font-size:12pt;"><div style="font-family: verdana,helvetica,sans-serif; font-size: 10pt; color: #000000"><p style="margin: 0px;"><br></p><p style="margin: 0px;">I have problems with log rotation.</p><p style="margin: 0px;"><br>Using the configuration for debugging in logback.xml but my lsc.log do not rotate.<br>I run LSC 2.1 (<span style="font-size: 10pt;">lsc-2.1.3-0.el5.noarch) </span><span style="font-size: 10pt;">with Java:</span></p><p style="margin: 0px;"> <span style="font-size: 10pt;">java version "1.7.0_79"</span></p><p style="margin: 0px;"> Java(TM) SE Runtime Environment (build 1.7.0_79-b15)<br> Java HotSpot(TM) 64-Bit Server VM (build 24.79-b02, mixed mode)</p><p style="margin: 0px;"><br></p><p style="margin: 0px;">and permissions in the /var/log/lsc seem correct:</p><p style="margin: 0px;"><br></p><p style="margin: 0px;">drwxr-xr-x 2 lsc lsc 4.0K Sep 29 11:42 .<br>drwxr-xr-x. 10 root root 4.0K Sep 27 23:58 ..<br>-rw-r--r-- 1 lsc lsc 157K Sep 29 15:23 lsc.ldif<br>-rw-r--r-- 1 lsc lsc 5.1G Sep 29 22:55 lsc.log (5.1 GB!!!)<br>-rw-r--r-- 1 lsc lsc 480 Sep 29 17:48 lsc.status</p><p style="margin: 0px;"><br>Can you help me?</p><p style="margin: 0px;"><br></p><p style="margin: 0px;">thanks in advance<br>regards</p><p style="margin: 0px;"><br></p><p style="margin: 0px;">-----Logback.xml-----</p><p style="margin: 0px;"><br></p><p style="margin: 0px;"><?xml version="1.0" encoding="UTF-8"?></p><p style="margin: 0px;"><configuration></p><p style="margin: 0px;"><!-- Standard output to console --><br> <appender name="CONSOLE" class="ch.qos.logback.core.ConsoleAppender"><br> <encoder class="ch.qos.logback.core.encoder.LayoutWrappingEncoder"><br> <layout class="org.lsc.utils.output.LdifLayout"><br> <Pattern>%date{MMM dd HH:mm:ss} - %-5level - %message%n</Pattern><br> </layout><br> </encoder><br> </appender></p><p style="margin: 0px;"><!-- Log all application messages --><br> <!-- this file is rotated every 10000KB, compressed and 7 files are kept for history --><br> <appender name="LSC" class="ch.qos.logback.core.rolling.RollingFileAppender"><br> <file>/var/log/lsc/lsc.log</file></p><p style="margin: 0px;"><layout class="org.lsc.utils.output.LdifLayout"><br> <Pattern>%date{MMM dd HH:mm:ss} - %-5level - %message%n</Pattern><br> </layout></p><p style="margin: 0px;"><filter class="ch.qos.logback.classic.filter.ThresholdFilter"><br> <level>DEBUG</level><br> </filter></p><p style="margin: 0px;"><rollingPolicy class="ch.qos.logback.core.rolling.FixedWindowRollingPolicy"><br> <FileNamePattern>lsc.log.%i.gz</FileNamePattern><br> <MinIndex>1</MinIndex><br> <MaxIndex>7</MaxIndex><br> </rollingPolicy></p><p style="margin: 0px;"><triggeringPolicy class="ch.qos.logback.core.rolling.SizeBasedTriggeringPolicy"><br> <MaxFileSize>10000KB</MaxFileSize><br> </triggeringPolicy><br> </appender></p><p style="margin: 0px;"><br> <!-- Log for status (to use with check_lsc_status_file.pl --><br> <!-- this file is erased at each execution --><br> <appender name="LSC_STATUS" class="ch.qos.logback.core.FileAppender"><br> <append>false</append><br> <file>/var/log/lsc/lsc.status</file></p><p style="margin: 0px;"><layout class="org.lsc.utils.output.LdifLayout"><br> <Pattern>%date{MMM dd HH:mm:ss} - %-5level - %message%n</Pattern><br> </layout></p><p style="margin: 0px;"><filter class="ch.qos.logback.classic.filter.ThresholdFilter"><br> <level>INFO</level><br> </filter><br> </appender></p><p style="margin: 0px;"><!-- Special logger to have a LDIF file of all modifications applied --><br> <!-- this file is rotated every 10000KB, compressed and 7 files are kept for history --><br> <appender name="LDIF" class="ch.qos.logback.core.rolling.RollingFileAppender"><br> <file>/var/log/lsc/lsc.ldif</file></p><p style="margin: 0px;"><layout class="org.lsc.utils.output.LdifLayout"><br> <Pattern>%m%n</Pattern><br> <onlyLdif>true</onlyLdif><br> </layout></p><p style="margin: 0px;"><filter class="ch.qos.logback.classic.filter.ThresholdFilter"><br> <level>INFO</level><br> </filter></p><p style="margin: 0px;"><rollingPolicy class="ch.qos.logback.core.rolling.FixedWindowRollingPolicy"><br> <FileNamePattern>lsc.ldif.%i.gz</FileNamePattern><br> <MinIndex>1</MinIndex><br> <MaxIndex>7</MaxIndex><br> </rollingPolicy></p><p style="margin: 0px;"><triggeringPolicy class="ch.qos.logback.core.rolling.SizeBasedTriggeringPolicy"><br> <MaxFileSize>10000KB</MaxFileSize><br> </triggeringPolicy><br> </appender></p><p style="margin: 0px;"><!-- Main LSC messages --><br> <logger name="org.lsc" level="DEBUG"><br> <appender-ref ref="LSC"/><br> <appender-ref ref="LSC_STATUS"/><br> </logger><br> <!-- Messages for LDIF output --><br> <logger name="lsc" level="INFO"><br> <appender-ref ref="LDIF"/><br> </logger><br> <!-- Other messages --><br> <logger name="communicationLogger" level="WARN"><br> <appender-ref ref="CONSOLE"/><br> </logger><br> <logger name="org.apache" level="WARN"><br> <appender-ref ref="CONSOLE"/><br> </logger><br> <logger name="poolLogger" level="WARN"><br> <appender-ref ref="CONSOLE"/><br> </logger><br> <!-- Root logger --><br> <root level="WARN"><br> <appender-ref ref="CONSOLE"/><br> </root><br></configuration></p><p style="margin: 0px;"><br></p><p style="margin: 0px;">--- EOF ---</p><p style="margin: 0px;"><br></p></div></div><div><br></div></div></div><div><br></div></div></body></html>