public class Log4jShutdown extends Object implements org.apache.logging.log4j.core.util.ShutdownCallbackRegistry, org.apache.logging.log4j.core.LifeCycle
Constructor and Description |
---|
Log4jShutdown() |
Modifier and Type | Method and Description |
---|---|
org.apache.logging.log4j.core.util.Cancellable |
addShutdownCallback(Runnable callback) |
org.apache.logging.log4j.core.LifeCycle.State |
getState() |
void |
initialize() |
boolean |
isStarted() |
boolean |
isStopped() |
void |
start() |
void |
stop() |
public org.apache.logging.log4j.core.util.Cancellable addShutdownCallback(Runnable callback)
addShutdownCallback
in interface org.apache.logging.log4j.core.util.ShutdownCallbackRegistry
public org.apache.logging.log4j.core.LifeCycle.State getState()
getState
in interface org.apache.logging.log4j.core.LifeCycle
public void initialize()
initialize
in interface org.apache.logging.log4j.core.LifeCycle
public void start()
start
in interface org.apache.logging.log4j.core.LifeCycle
public void stop()
stop
in interface org.apache.logging.log4j.core.LifeCycle
public boolean isStarted()
isStarted
in interface org.apache.logging.log4j.core.LifeCycle
public boolean isStopped()
isStopped
in interface org.apache.logging.log4j.core.LifeCycle
Copyright © 2011–2017. All rights reserved.