TriggeringPolicy
, LifeCycle
, LifeCycle2
@Plugin(name="OnStartupTriggeringPolicy", category="Core", printObject=true) public class OnStartupTriggeringPolicy extends AbstractTriggeringPolicy
LifeCycle.State
DEFAULT_STOP_TIMEOUT, DEFAULT_STOP_TIMEUNIT, LOGGER
Modifier and Type | Method | Description |
---|---|---|
static OnStartupTriggeringPolicy |
createPolicy(long minSize) |
|
void |
initialize(RollingFileManager manager) |
Provide the RollingFileManager to the policy.
|
boolean |
isTriggeringEvent(LogEvent event) |
Determine if a rollover should be triggered.
|
String |
toString() |
equalsImpl, getState, getStatusLogger, hashCodeImpl, initialize, isInitialized, isStarted, isStarting, isStopped, isStopping, setStarted, setStarting, setState, setStopped, setStopping, start, stop, stop, stop
public void initialize(RollingFileManager manager)
manager
- The RollingFileManager.public boolean isTriggeringEvent(LogEvent event)
event
- A reference to the current event.@PluginFactory public static OnStartupTriggeringPolicy createPolicy(@PluginAttribute(value="minSize",defaultLong=1L) long minSize)
Copyright © 1999-2018. 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.