Package de.mnl.osgi.log4j2osgi
Class OsgiLogger
- java.lang.Object
-
- org.apache.logging.log4j.spi.AbstractLogger
-
- de.mnl.osgi.log4j2osgi.OsgiLogger
-
- All Implemented Interfaces:
de.mnl.osgi.lf4osgi.core.LoggerFacade
,Serializable
,org.apache.logging.log4j.Logger
,org.apache.logging.log4j.spi.ExtendedLogger
,org.apache.logging.log4j.spi.LocationAwareLogger
public class OsgiLogger extends org.apache.logging.log4j.spi.AbstractLogger implements de.mnl.osgi.lf4osgi.core.LoggerFacade
The OsgiLogger.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description OsgiLogger(OsgiLoggerContext context, String name)
Instantiates a new OSGi logger.OsgiLogger(OsgiLoggerContext context, String name, org.apache.logging.log4j.message.MessageFactory messageFactory)
Instantiates a new OSGi logger.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.apache.logging.log4j.Level
getLevel()
boolean
isEnabled(org.apache.logging.log4j.Level level, org.apache.logging.log4j.Marker marker, CharSequence data, Throwable thr)
boolean
isEnabled(org.apache.logging.log4j.Level level, org.apache.logging.log4j.Marker marker, Object data, Throwable thr)
boolean
isEnabled(org.apache.logging.log4j.Level level, org.apache.logging.log4j.Marker marker, String data)
boolean
isEnabled(org.apache.logging.log4j.Level level, org.apache.logging.log4j.Marker marker, String message, Object param)
boolean
isEnabled(org.apache.logging.log4j.Level level, org.apache.logging.log4j.Marker marker, String data, Object... params)
boolean
isEnabled(org.apache.logging.log4j.Level level, org.apache.logging.log4j.Marker marker, String message, Object param1, Object param2)
boolean
isEnabled(org.apache.logging.log4j.Level level, org.apache.logging.log4j.Marker marker, String message, Object param1, Object param2, Object param3)
boolean
isEnabled(org.apache.logging.log4j.Level level, org.apache.logging.log4j.Marker marker, String message, Object param1, Object param2, Object param3, Object param4)
boolean
isEnabled(org.apache.logging.log4j.Level level, org.apache.logging.log4j.Marker marker, String message, Object param1, Object param2, Object param3, Object param4, Object param5)
boolean
isEnabled(org.apache.logging.log4j.Level level, org.apache.logging.log4j.Marker marker, String message, Object param1, Object param2, Object param3, Object param4, Object param5, Object param6)
boolean
isEnabled(org.apache.logging.log4j.Level level, org.apache.logging.log4j.Marker marker, String message, Object param1, Object param2, Object param3, Object param4, Object param5, Object param6, Object param7)
boolean
isEnabled(org.apache.logging.log4j.Level level, org.apache.logging.log4j.Marker marker, String message, Object param1, Object param2, Object param3, Object param4, Object param5, Object param6, Object param7, Object param8)
boolean
isEnabled(org.apache.logging.log4j.Level level, org.apache.logging.log4j.Marker marker, String message, Object param1, Object param2, Object param3, Object param4, Object param5, Object param6, Object param7, Object param8, Object param9)
boolean
isEnabled(org.apache.logging.log4j.Level level, org.apache.logging.log4j.Marker marker, String message, Object param1, Object param2, Object param3, Object param4, Object param5, Object param6, Object param7, Object param8, Object param9, Object param10)
boolean
isEnabled(org.apache.logging.log4j.Level level, org.apache.logging.log4j.Marker marker, String data, Throwable thr)
boolean
isEnabled(org.apache.logging.log4j.Level level, org.apache.logging.log4j.Marker marker, org.apache.logging.log4j.message.Message data, Throwable thr)
void
loggerFactoryUpdated(LoggerFactory factory)
void
logMessage(String fqcn, org.apache.logging.log4j.Level level, org.apache.logging.log4j.Marker marker, org.apache.logging.log4j.message.Message message, Throwable thr)
-
Methods inherited from class org.apache.logging.log4j.spi.AbstractLogger
always, atDebug, atError, atFatal, atInfo, atLevel, atTrace, atWarn, catching, catching, catching, catchingMsg, checkMessageFactory, debug, debug, debug, debug, debug, debug, debug, debug, debug, debug, debug, debug, debug, debug, debug, debug, debug, debug, debug, debug, debug, debug, debug, debug, debug, debug, debug, debug, debug, debug, debug, debug, debug, debug, debug, debug, debug, debug, debug, debug, debug, debug, debug, debug, debug, debug, debug, debug, enter, enter, enter, enter, enter, entry, entry, entry, entryMsg, entryMsg, entryMsg, error, error, error, error, error, error, error, error, error, error, error, error, error, error, error, error, error, error, error, error, error, error, error, error, error, error, error, error, error, error, error, error, error, error, error, error, error, error, error, error, error, error, error, error, error, error, error, error, exit, exit, exit, exit, exitMsg, fatal, fatal, fatal, fatal, fatal, fatal, fatal, fatal, fatal, fatal, fatal, fatal, fatal, fatal, fatal, fatal, fatal, fatal, fatal, fatal, fatal, fatal, fatal, fatal, fatal, fatal, fatal, fatal, fatal, fatal, fatal, fatal, fatal, fatal, fatal, fatal, fatal, fatal, fatal, fatal, fatal, fatal, fatal, fatal, fatal, fatal, fatal, fatal, getMessageFactory, getName, getRecursionDepth, info, info, info, info, info, info, info, info, info, info, info, info, info, info, info, info, info, info, info, info, info, info, info, info, info, info, info, info, info, info, info, info, info, info, info, info, info, info, info, info, info, info, info, info, info, info, info, info, isDebugEnabled, isDebugEnabled, isEnabled, isEnabled, isErrorEnabled, isErrorEnabled, isFatalEnabled, isFatalEnabled, isInfoEnabled, isInfoEnabled, isTraceEnabled, isTraceEnabled, isWarnEnabled, isWarnEnabled, log, log, log, log, log, log, log, log, log, log, log, log, log, log, log, log, log, log, log, log, log, log, log, log, log, log, log, log, log, log, log, log, log, log, log, log, log, log, log, log, log, log, log, log, log, log, log, log, log, logIfEnabled, logIfEnabled, logIfEnabled, logIfEnabled, logIfEnabled, logIfEnabled, logIfEnabled, logIfEnabled, logIfEnabled, logIfEnabled, logIfEnabled, logIfEnabled, logIfEnabled, logIfEnabled, logIfEnabled, logIfEnabled, logIfEnabled, logIfEnabled, logIfEnabled, logMessage, logMessage, logMessage, logMessage, logMessage, logMessage, logMessage, logMessage, logMessage, logMessage, logMessage, logMessage, logMessage, logMessage, logMessage, logMessage, logMessage, logMessage, logMessage, printf, printf, requiresLocation, throwing, throwing, throwing, throwingMsg, trace, trace, trace, trace, trace, trace, trace, trace, trace, trace, trace, trace, trace, trace, trace, trace, trace, trace, trace, trace, trace, trace, trace, trace, trace, trace, trace, trace, trace, trace, trace, trace, trace, trace, trace, trace, trace, trace, trace, trace, trace, trace, trace, trace, trace, trace, trace, trace, traceEntry, traceEntry, traceEntry, traceEntry, traceEntry, traceExit, traceExit, traceExit, traceExit, traceExit, traceExit, warn, warn, warn, warn, warn, warn, warn, warn, warn, warn, warn, warn, warn, warn, warn, warn, warn, warn, warn, warn, warn, warn, warn, warn, warn, warn, warn, warn, warn, warn, warn, warn, warn, warn, warn, warn, warn, warn, warn, warn, warn, warn, warn, warn, warn, warn, warn, warn
-
-
-
-
Constructor Detail
-
OsgiLogger
public OsgiLogger(OsgiLoggerContext context, String name, org.apache.logging.log4j.message.MessageFactory messageFactory)
Instantiates a new OSGi logger.- Parameters:
context
- the contextname
- the namemessageFactory
- the message factory
-
OsgiLogger
public OsgiLogger(OsgiLoggerContext context, String name)
Instantiates a new OSGi logger.- Parameters:
context
- the contextname
- the name
-
-
Method Detail
-
loggerFactoryUpdated
public void loggerFactoryUpdated(LoggerFactory factory)
- Specified by:
loggerFactoryUpdated
in interfacede.mnl.osgi.lf4osgi.core.LoggerFacade
-
getLevel
public org.apache.logging.log4j.Level getLevel()
- Specified by:
getLevel
in interfaceorg.apache.logging.log4j.Logger
-
isEnabled
public boolean isEnabled(org.apache.logging.log4j.Level level, org.apache.logging.log4j.Marker marker, org.apache.logging.log4j.message.Message data, Throwable thr)
- Specified by:
isEnabled
in interfaceorg.apache.logging.log4j.spi.ExtendedLogger
-
isEnabled
public boolean isEnabled(org.apache.logging.log4j.Level level, org.apache.logging.log4j.Marker marker, CharSequence data, Throwable thr)
- Specified by:
isEnabled
in interfaceorg.apache.logging.log4j.spi.ExtendedLogger
-
isEnabled
public boolean isEnabled(org.apache.logging.log4j.Level level, org.apache.logging.log4j.Marker marker, Object data, Throwable thr)
- Specified by:
isEnabled
in interfaceorg.apache.logging.log4j.spi.ExtendedLogger
-
isEnabled
public boolean isEnabled(org.apache.logging.log4j.Level level, org.apache.logging.log4j.Marker marker, String data)
- Specified by:
isEnabled
in interfaceorg.apache.logging.log4j.spi.ExtendedLogger
-
isEnabled
public boolean isEnabled(org.apache.logging.log4j.Level level, org.apache.logging.log4j.Marker marker, String data, Object... params)
- Specified by:
isEnabled
in interfaceorg.apache.logging.log4j.spi.ExtendedLogger
-
isEnabled
public boolean isEnabled(org.apache.logging.log4j.Level level, org.apache.logging.log4j.Marker marker, String message, Object param)
- Specified by:
isEnabled
in interfaceorg.apache.logging.log4j.spi.ExtendedLogger
-
isEnabled
public boolean isEnabled(org.apache.logging.log4j.Level level, org.apache.logging.log4j.Marker marker, String message, Object param1, Object param2)
- Specified by:
isEnabled
in interfaceorg.apache.logging.log4j.spi.ExtendedLogger
-
isEnabled
public boolean isEnabled(org.apache.logging.log4j.Level level, org.apache.logging.log4j.Marker marker, String message, Object param1, Object param2, Object param3)
- Specified by:
isEnabled
in interfaceorg.apache.logging.log4j.spi.ExtendedLogger
-
isEnabled
public boolean isEnabled(org.apache.logging.log4j.Level level, org.apache.logging.log4j.Marker marker, String message, Object param1, Object param2, Object param3, Object param4)
- Specified by:
isEnabled
in interfaceorg.apache.logging.log4j.spi.ExtendedLogger
-
isEnabled
public boolean isEnabled(org.apache.logging.log4j.Level level, org.apache.logging.log4j.Marker marker, String message, Object param1, Object param2, Object param3, Object param4, Object param5)
- Specified by:
isEnabled
in interfaceorg.apache.logging.log4j.spi.ExtendedLogger
-
isEnabled
public boolean isEnabled(org.apache.logging.log4j.Level level, org.apache.logging.log4j.Marker marker, String message, Object param1, Object param2, Object param3, Object param4, Object param5, Object param6)
- Specified by:
isEnabled
in interfaceorg.apache.logging.log4j.spi.ExtendedLogger
-
isEnabled
public boolean isEnabled(org.apache.logging.log4j.Level level, org.apache.logging.log4j.Marker marker, String message, Object param1, Object param2, Object param3, Object param4, Object param5, Object param6, Object param7)
- Specified by:
isEnabled
in interfaceorg.apache.logging.log4j.spi.ExtendedLogger
-
isEnabled
public boolean isEnabled(org.apache.logging.log4j.Level level, org.apache.logging.log4j.Marker marker, String message, Object param1, Object param2, Object param3, Object param4, Object param5, Object param6, Object param7, Object param8)
- Specified by:
isEnabled
in interfaceorg.apache.logging.log4j.spi.ExtendedLogger
-
isEnabled
public boolean isEnabled(org.apache.logging.log4j.Level level, org.apache.logging.log4j.Marker marker, String message, Object param1, Object param2, Object param3, Object param4, Object param5, Object param6, Object param7, Object param8, Object param9)
- Specified by:
isEnabled
in interfaceorg.apache.logging.log4j.spi.ExtendedLogger
-
isEnabled
public boolean isEnabled(org.apache.logging.log4j.Level level, org.apache.logging.log4j.Marker marker, String message, Object param1, Object param2, Object param3, Object param4, Object param5, Object param6, Object param7, Object param8, Object param9, Object param10)
- Specified by:
isEnabled
in interfaceorg.apache.logging.log4j.spi.ExtendedLogger
-
isEnabled
public boolean isEnabled(org.apache.logging.log4j.Level level, org.apache.logging.log4j.Marker marker, String data, Throwable thr)
- Specified by:
isEnabled
in interfaceorg.apache.logging.log4j.spi.ExtendedLogger
-
logMessage
public void logMessage(String fqcn, org.apache.logging.log4j.Level level, org.apache.logging.log4j.Marker marker, org.apache.logging.log4j.message.Message message, Throwable thr)
- Specified by:
logMessage
in interfaceorg.apache.logging.log4j.spi.ExtendedLogger
-
-