Class HybrisLoggerHierarchy

  • All Implemented Interfaces:
    org.apache.log4j.spi.LoggerRepository, org.apache.log4j.spi.RendererSupport, org.apache.log4j.spi.ThrowableRendererSupport

    public class HybrisLoggerHierarchy
    extends org.apache.log4j.Hierarchy
    The [y]hybris logger hierarchy which uses a hybris specific logger factory instead of the normal log4j hierarchy.
    • Constructor Summary

      Constructors 
      Constructor Description
      HybrisLoggerHierarchy​(org.apache.log4j.Logger root)
      Instantiates a new hierarchy and sets the default logger factory.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void clear()  
      org.apache.log4j.Logger exists​(java.lang.String name)  
      org.apache.log4j.Logger getLogger​(java.lang.String name)  
      protected org.apache.log4j.Logger loadLoggerWhichDoesntExist​(java.lang.String name)  
      void resetConfiguration()  
      void shutdown()  
      • Methods inherited from class org.apache.log4j.Hierarchy

        addHierarchyEventListener, addRenderer, emitNoAppenderWarning, fireAddAppenderEvent, getCurrentCategories, getCurrentLoggers, getLogger, getRendererMap, getRootLogger, getThreshold, getThrowableRenderer, isDisabled, overrideAsNeeded, setDisableOverride, setRenderer, setThreshold, setThreshold, setThrowableRenderer
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • HybrisLoggerHierarchy

        public HybrisLoggerHierarchy​(org.apache.log4j.Logger root)
        Instantiates a new hierarchy and sets the default logger factory.
        Parameters:
        root - the root logger for hierarchy
    • Method Detail

      • clear

        public void clear()
        Overrides:
        clear in class org.apache.log4j.Hierarchy
      • resetConfiguration

        public void resetConfiguration()
        Specified by:
        resetConfiguration in interface org.apache.log4j.spi.LoggerRepository
        Overrides:
        resetConfiguration in class org.apache.log4j.Hierarchy
      • shutdown

        public void shutdown()
        Specified by:
        shutdown in interface org.apache.log4j.spi.LoggerRepository
        Overrides:
        shutdown in class org.apache.log4j.Hierarchy
      • exists

        public org.apache.log4j.Logger exists​(java.lang.String name)
        Specified by:
        exists in interface org.apache.log4j.spi.LoggerRepository
        Overrides:
        exists in class org.apache.log4j.Hierarchy
      • getLogger

        public org.apache.log4j.Logger getLogger​(java.lang.String name)
        Specified by:
        getLogger in interface org.apache.log4j.spi.LoggerRepository
        Overrides:
        getLogger in class org.apache.log4j.Hierarchy
      • loadLoggerWhichDoesntExist

        protected org.apache.log4j.Logger loadLoggerWhichDoesntExist​(java.lang.String name)