Package de.mnl.osgi.log4j2osgi
Class OsgiLoggerContext
- java.lang.Object
-
- de.mnl.osgi.log4j2osgi.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 Summary
Constructors Constructor Description OsgiLoggerContext(Bundle bundle)
Instantiates a new OSGi logger context.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Bundle
getBundle()
Object
getExternalContext()
OsgiLogger
getLogger(String name)
org.apache.logging.log4j.spi.ExtendedLogger
getLogger(String name, org.apache.logging.log4j.message.MessageFactory messageFactory)
boolean
hasLogger(String name)
boolean
hasLogger(String name, Class<? extends org.apache.logging.log4j.message.MessageFactory> messageFactoryClass)
boolean
hasLogger(String name, org.apache.logging.log4j.message.MessageFactory messageFactory)
-
-
-
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 interfacede.mnl.osgi.lf4osgi.core.LoggerGroup
-
getLogger
public OsgiLogger getLogger(String name)
- Specified by:
getLogger
in interfaceorg.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 interfaceorg.apache.logging.log4j.spi.LoggerContext
-
hasLogger
public boolean hasLogger(String name)
- Specified by:
hasLogger
in interfaceorg.apache.logging.log4j.spi.LoggerContext
-
hasLogger
public boolean hasLogger(String name, org.apache.logging.log4j.message.MessageFactory messageFactory)
- Specified by:
hasLogger
in interfaceorg.apache.logging.log4j.spi.LoggerContext
-
hasLogger
public boolean hasLogger(String name, Class<? extends org.apache.logging.log4j.message.MessageFactory> messageFactoryClass)
- Specified by:
hasLogger
in interfaceorg.apache.logging.log4j.spi.LoggerContext
-
getExternalContext
public Object getExternalContext()
- Specified by:
getExternalContext
in interfaceorg.apache.logging.log4j.spi.LoggerContext
-
-