
Great, this works fine. S.D. Ceki Gülcü <listid@qos.ch> wrote: Hello Samuel, I'd try the following. (Apologies, I did not have time to test it, so it might contain minor mistakes.) class="ch.qos.logback.core.rolling.RollingFileAppender"> class="ch.qos.logback.core.rolling.FixedWindowRollingPolicy"> class="ch.qos.logback.core.rolling.SizeBasedRollingPolicy"> The TimeBasedRollingPolicy based example that you would usually want to use in real life (instead of the above) is less verbose, and just as powerful. class="ch.qos.logback.core.rolling.RollingFileAppender"> You might also want to have a look at the javadocs. http://logback.qos.ch/apidocs/ch/qos/logback/core/rolling/SizeBasedTriggerin... http://logback.qos.ch/apidocs/ch/qos/logback/core/rolling/FixedWindowRolling... http://logback.qos.ch/apidocs/ch/qos/logback/core/rolling/TimeBasedRollingPo... If you run into problems, please let us know. At 08:24 PM 9/14/2006, Samuel Doyle wrote:
Hi, using this it is now complaining about a triggeringpolicy.
INFO in ch.qos.logback.core.joran.action.AppenderAction - About to instantiate appender of type [ch.qos.logback.core.rolling.RollingFileAppender] INFO in ch.qos.logback.core.joran.action.AppenderAction - Appender named as [bitranlog] ERROR in ch.qos.logback.core.joran.action.NestedComponentIA - Could not create component . WARN in ch.qos.logback.core.rolling.RollingFileAppender[bitranlog] - Please set a TriggeringPolicy for the RollingFileAppender named bitranlog INFO in ch.qos.logback.core.joran.action.AppenderAction - Popping appender named [bitranlog] from the object stack
-- Ceki Gülcü Logback: The reliable, generic, fast and flexible logging framework for Java. http://ceki.blogspot.com/ _______________________________________________ Logback-user mailing list Logback-user@qos.ch http://qos.ch/mailman/listinfo/logback-user