[logback-user] Rollingpolicy problem

Yihya Hugirat hugirat at gmail.com
Thu Mar 24 11:02:56 CET 2011


hello all,
i have  a problem (i think it is a problem) with the Rolling policy when i
put the path for the over rolled files as the same one for the log files the
rolling policy will not be activated
but the log file keep growing.

Note: i have used the example files that comes with logback.

here is my logback.xml file:

<configuration scan="true" scanPeriod="15 seconds">
    <insertFromJNDI env-entry-name="java:comp/env/appName" as="appName" />
       <contextName>${appName}</contextName>
    <jmxConfigurator />
    <property file="Levels.properties" />
    <appender name="FILE"
class="ch.qos.logback.core.rolling.RollingFileAppender">
        <file>${AGRESSO_LOG_FOLDER}/Agresso.log</file>
        <rollingPolicy
class="ch.qos.logback.core.rolling.TimeBasedRollingPolicy">
            <fileNamePattern>Agresso.log_%d{yyyy-MM-dd}.%i</fileNamePattern>
            <timeBasedFileNamingAndTriggeringPolicy
class="ch.qos.logback.core.rolling.SizeAndTimeBasedFNATP">
                 <maxFileSize>3MB</maxFileSize>
            </timeBasedFileNamingAndTriggeringPolicy>
        </rollingPolicy>
        <encoder>
            <pattern>%date   %-5level %logger{35} - %msg%n</pattern>
        </encoder>
    </appender>

    <logger name="org.rle.services"  level="DEBUG"  >

        <appender-ref ref="FILE" />
    </logger>
    <logger name="org.rle.services.agresso" level="DEBUG"
additivity="false">

        <appender-ref ref="FILE" />
    </logger>
    <root level="DEBUG">
      <!--<appender-ref ref="STDOUT" /> -->

    </root>
</configuration>
-- 
إِنَّ الَّذِينَ يُحِبُّونَ أَنْ تَشِيعَ الْفَاحِشَةُ فِي الَّذِينَ آمَنُوا
لَهُمْ عَذَابٌ أَلِيمٌ فِي الدُّنْيَا وَالآخِرَةِ وَاللَّهُ يَعْلَمُ
وَأَنْتُمْ لا تَعْلَمُونَ


My public key please use it when you contact me:
هذا مفتاحي العام الرجاء أستخدامه عند الإتصال بي:

09BA B710 4B98 ECDA 8C0A 6CB1 2E1E CF88 6A12 F2C3
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://qos.ch/pipermail/logback-user/attachments/20110324/e78543e4/attachment.html>


More information about the Logback-user mailing list