@Plugin(name="NoOpTriggeringPolicy", category="Core", printObject=true) public class NoOpTriggeringPolicy extends AbstractTriggeringPolicy
LifeCycle.State
Modifier and Type | Field and Description |
---|---|
static NoOpTriggeringPolicy |
INSTANCE |
DEFAULT_STOP_TIMEOUT, DEFAULT_STOP_TIMEUNIT, LOGGER
Constructor and Description |
---|
NoOpTriggeringPolicy() |
Modifier and Type | Method and 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.
|
equalsImpl, getState, getStatusLogger, hashCodeImpl, initialize, isInitialized, isStarted, isStarting, isStopped, isStopping, setStarted, setStarting, setState, setStopped, setStopping, start, stop, stop, stop
public static final NoOpTriggeringPolicy INSTANCE
public NoOpTriggeringPolicy()
@PluginFactory public static NoOpTriggeringPolicy createPolicy()
public void initialize(RollingFileManager manager)
TriggeringPolicy
manager
- The RollingFileManager.public boolean isTriggeringEvent(LogEvent logEvent)
TriggeringPolicy
logEvent
- A reference to the current log event.Copyright © 1999-2021 The 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.