org.apache.logging.log4j.core.appender.rolling

Class TimeBasedTriggeringPolicy

    • Method Detail

      • getInterval

        public int getInterval()
      • getNextRolloverMillis

        public long getNextRolloverMillis()
      • initialize

        public void initialize(RollingFileManager aManager)
        Initializes the policy.
        Parameters:
        aManager - The RollingFileManager.
      • isTriggeringEvent

        public boolean isTriggeringEvent(LogEvent event)
        Determines whether a rollover should occur.
        Parameters:
        event - A reference to the currently event.
        Returns:
        true if a rollover should occur.

Copyright © 1999-2017 Apache Software Foundation. All Rights Reserved.
Apache Logging, Apache Log4j, Log4j, Apache, the Apache feather logo, the Apache Logging project logo, and the Apache Log4j logo are trademarks of The Apache Software Foundation.