Interface RollingPolicy

    • Method Summary

      Modifier and Type Method and Description
      String getActiveFileName()
      Get the name of the active log file.
      CompressionMode getCompressionMode()
      The compression mode for this policy.
      void rollover()
      Rolls over log files according to implementation policy.
      void setParent(FileAppender appender)
      This method allows RollingPolicy implementations to be aware of their containing appender.
    • Method Detail

      • getActiveFileName

        String getActiveFileName()
        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()
        The compression mode for this policy.
        Returns:
      • setParent

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