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 -
Method Summary
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.apache.logging.log4j.spi.LoggerContext
getLogger, getLogger, getObject, putObject, putObjectIfAbsent, removeObject, removeObject
-
Constructor Details
-
OsgiLoggerContext
Instantiates a new OSGi logger context.- Parameters:
bundle- the bundle
-
-
Method Details
-
getBundle
- Specified by:
getBundlein interfacede.mnl.osgi.lf4osgi.core.LoggerGroup
-
getLogger
- Specified by:
getLoggerin 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:
getLoggerin interfaceorg.apache.logging.log4j.spi.LoggerContext
-
hasLogger
- Specified by:
hasLoggerin interfaceorg.apache.logging.log4j.spi.LoggerContext
-
hasLogger
public boolean hasLogger(String name, org.apache.logging.log4j.message.MessageFactory messageFactory) - Specified by:
hasLoggerin interfaceorg.apache.logging.log4j.spi.LoggerContext
-
hasLogger
public boolean hasLogger(String name, Class<? extends org.apache.logging.log4j.message.MessageFactory> messageFactoryClass) - Specified by:
hasLoggerin interfaceorg.apache.logging.log4j.spi.LoggerContext
-
getExternalContext
- Specified by:
getExternalContextin interfaceorg.apache.logging.log4j.spi.LoggerContext
-