Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
Logback: the reliable, generic, fast and flexible logging framework. Copyright (C) 1999-2011, All rights reserved. This program and the accompanying materials are dual-licensed under either the terms of the Eclipse Public License v1.0 as published by the Eclipse Foundation or (per the licensee's choosing) under the terms of the GNU Lesser General Public License version 2.1 as published by the Free Software Foundation.
package ch.qos.logback.core.rolling;
A RollingPolicy is responsible for performing the rolling over of the active log file. The RollingPolicy is also responsible for providing the active log file, that is the live file where logging output will be directed.

Ceki Gülcü
public interface RollingPolicy extends LifeCycle {

Rolls over log files according to implementation policy.

This method is invoked by RollingFileAppender, usually at the behest of its TriggeringPolicy.

RolloverFailure Thrown if the rollover operation fails for any reason.
  void rollover() throws RolloverFailure;

Get the name of the active log file.

With implementations such as TimeBasedRollingPolicy, this method returns a new file name, where the actual output will be sent.

On other implementations, this method might return the FileAppender's file property.

The compression mode for this policy.

This method allows RollingPolicy implementations to be aware of their containing appender.

  void setParent(FileAppender appender);
New to GrepCode? Check out our FAQ X