Interface RollingPolicy

All Superinterfaces:
LifeCycle
All Known Implementing Classes:
FixedWindowRollingPolicy, RollingPolicyBase, SizeAndTimeBasedRollingPolicy, TimeBasedRollingPolicy

@Deprecated(since="2022-01-27") public interface RollingPolicy extends LifeCycle
Deprecated.
This internal logback API is not supported by AEM as a Cloud Service.
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.
  • Method Summary

    Modifier and Type
    Method
    Description
    Deprecated.
    Get the name of the active log file.
    Deprecated.
    The compression mode for this policy.
    void
    Deprecated.
    Rolls over log files according to implementation policy.
    void
    setParent(FileAppender<?> appender)
    Deprecated.
    This method allows RollingPolicy implementations to be aware of their containing appender.

    Methods inherited from interface ch.qos.logback.core.spi.LifeCycle

    isStarted, start, stop
  • Method Details

    • rollover

      void rollover() throws RolloverFailure
      Deprecated.
      Rolls over log files according to implementation policy.

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

      Throws:
      RolloverFailure - Thrown if the rollover operation fails for any reason.
    • getActiveFileName

      String getActiveFileName()
      Deprecated.
      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.

    • getCompressionMode

      CompressionMode getCompressionMode()
      Deprecated.
      The compression mode for this policy.
      Returns:
    • setParent

      void setParent(FileAppender<?> appender)
      Deprecated.
      This method allows RollingPolicy implementations to be aware of their containing appender.
      Parameters:
      appender -