Class Log4jShutdown

  • All Implemented Interfaces:
    org.apache.logging.log4j.core.LifeCycle, org.apache.logging.log4j.core.util.ShutdownCallbackRegistry

    public class Log4jShutdown
    extends Object
    implements org.apache.logging.log4j.core.util.ShutdownCallbackRegistry, org.apache.logging.log4j.core.LifeCycle
    • Constructor Detail

      • Log4jShutdown

        public Log4jShutdown()
    • Method Detail

      • addShutdownCallback

        public org.apache.logging.log4j.core.util.Cancellable addShutdownCallback​(Runnable callback)
        Specified by:
        addShutdownCallback in interface org.apache.logging.log4j.core.util.ShutdownCallbackRegistry
      • getState

        public org.apache.logging.log4j.core.LifeCycle.State getState()
        Specified by:
        getState in interface org.apache.logging.log4j.core.LifeCycle
      • initialize

        public void initialize()
        Specified by:
        initialize in interface org.apache.logging.log4j.core.LifeCycle
      • start

        public void start()
        Specified by:
        start in interface org.apache.logging.log4j.core.LifeCycle
      • stop

        public void stop()
        Specified by:
        stop in interface org.apache.logging.log4j.core.LifeCycle
      • isStarted

        public boolean isStarted()
        Specified by:
        isStarted in interface org.apache.logging.log4j.core.LifeCycle
      • isStopped

        public boolean isStopped()
        Specified by:
        isStopped in interface org.apache.logging.log4j.core.LifeCycle