Class OsgiLoggerContext

  • All Implemented Interfaces:
    de.mnl.osgi.lf4osgi.core.LoggerGroup, org.apache.logging.log4j.spi.LoggerContext

    public class OsgiLoggerContext
    extends Object
    implements de.mnl.osgi.lf4osgi.core.LoggerGroup, org.apache.logging.log4j.spi.LoggerContext
    The OsgiLoggerContext.
    • Constructor Detail

      • OsgiLoggerContext

        public OsgiLoggerContext​(Bundle bundle)
        Instantiates a new OSGi logger context.
        Parameters:
        bundle - the bundle
    • Method Detail

      • getBundle

        public Bundle getBundle()
        Specified by:
        getBundle in interface de.mnl.osgi.lf4osgi.core.LoggerGroup
      • getLogger

        public OsgiLogger getLogger​(String name)
        Specified by:
        getLogger in interface org.apache.logging.log4j.spi.LoggerContext
      • getLogger

        public org.apache.logging.log4j.spi.ExtendedLogger getLogger​(String name,
                                                                     org.apache.logging.log4j.message.MessageFactory messageFactory)
        Specified by:
        getLogger in interface org.apache.logging.log4j.spi.LoggerContext
      • hasLogger

        public boolean hasLogger​(String name)
        Specified by:
        hasLogger in interface org.apache.logging.log4j.spi.LoggerContext
      • hasLogger

        public boolean hasLogger​(String name,
                                 org.apache.logging.log4j.message.MessageFactory messageFactory)
        Specified by:
        hasLogger in interface org.apache.logging.log4j.spi.LoggerContext
      • hasLogger

        public boolean hasLogger​(String name,
                                 Class<? extends org.apache.logging.log4j.message.MessageFactory> messageFactoryClass)
        Specified by:
        hasLogger in interface org.apache.logging.log4j.spi.LoggerContext
      • getExternalContext

        public Object getExternalContext()
        Specified by:
        getExternalContext in interface org.apache.logging.log4j.spi.LoggerContext