Class NoOpTriggeringPolicy
- java.lang.Object
-
- org.apache.logging.log4j.core.AbstractLifeCycle
-
- org.apache.logging.log4j.core.appender.rolling.AbstractTriggeringPolicy
-
- org.apache.logging.log4j.core.appender.rolling.NoOpTriggeringPolicy
-
- All Implemented Interfaces:
TriggeringPolicy
,LifeCycle
,LifeCycle2
@Plugin(name="NoOpTriggeringPolicy", category="Core", printObject=true) public class NoOpTriggeringPolicy extends AbstractTriggeringPolicy
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.apache.logging.log4j.core.LifeCycle
LifeCycle.State
-
-
Field Summary
Fields Modifier and Type Field Description static NoOpTriggeringPolicy
INSTANCE
-
Fields inherited from class org.apache.logging.log4j.core.AbstractLifeCycle
DEFAULT_STOP_TIMEOUT, DEFAULT_STOP_TIMEUNIT, LOGGER
-
-
Constructor Summary
Constructors Constructor Description NoOpTriggeringPolicy()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static NoOpTriggeringPolicy
createPolicy()
void
initialize(RollingFileManager manager)
Initializes this triggering policy.boolean
isTriggeringEvent(LogEvent logEvent)
Determines if a rollover may be appropriate at this time.-
Methods inherited from class org.apache.logging.log4j.core.AbstractLifeCycle
equalsImpl, getState, getStatusLogger, hashCodeImpl, initialize, isInitialized, isStarted, isStarting, isStopped, isStopping, setStarted, setStarting, setState, setStopped, setStopping, start, stop, stop, stop
-
-
-
-
Field Detail
-
INSTANCE
public static final NoOpTriggeringPolicy INSTANCE
-
-
Method Detail
-
createPolicy
@PluginFactory public static NoOpTriggeringPolicy createPolicy()
-
initialize
public void initialize(RollingFileManager manager)
Description copied from interface:TriggeringPolicy
Initializes this triggering policy.- Parameters:
manager
- The RollingFileManager.
-
isTriggeringEvent
public boolean isTriggeringEvent(LogEvent logEvent)
Description copied from interface:TriggeringPolicy
Determines if a rollover may be appropriate at this time. If true is returned, RolloverPolicy.rollover will be called but it can determine that a rollover is not warranted.- Parameters:
logEvent
- A reference to the current log event.- Returns:
- true if a rollover should occur.
-
-