public class ExtendedLoggerWrapper extends AbstractLogger
Modifier and Type | Field and Description |
---|---|
protected ExtendedLogger |
logger
The wrapped Logger.
|
CATCHING_MARKER, DEFAULT_FLOW_MESSAGE_FACTORY_CLASS, DEFAULT_MESSAGE_FACTORY_CLASS, ENTRY_MARKER, EXCEPTION_MARKER, EXIT_MARKER, FLOW_MARKER, logBuilder, name, THROWING_MARKER
Constructor and Description |
---|
ExtendedLoggerWrapper(ExtendedLogger logger,
String name,
MessageFactory messageFactory)
Constructor that wraps and existing Logger.
|
Modifier and Type | Method and Description |
---|---|
Level |
getLevel()
Gets the Level associated with the Logger.
|
boolean |
isEnabled(Level level,
Marker marker,
CharSequence message,
Throwable t)
Detect if the event would be logged.
|
boolean |
isEnabled(Level level,
Marker marker,
Message message,
Throwable t)
Detect if the event would be logged.
|
boolean |
isEnabled(Level level,
Marker marker,
Object message,
Throwable t)
Detect if the event would be logged.
|
boolean |
isEnabled(Level level,
Marker marker,
String message)
Detect if the event would be logged.
|
boolean |
isEnabled(Level level,
Marker marker,
String message,
Object... params)
Detect if the event would be logged.
|
boolean |
isEnabled(Level level,
Marker marker,
String message,
Object p0)
Determines if logging is enabled.
|
boolean |
isEnabled(Level level,
Marker marker,
String message,
Object p0,
Object p1)
Determines if logging is enabled.
|
boolean |
isEnabled(Level level,
Marker marker,
String message,
Object p0,
Object p1,
Object p2)
Determines if logging is enabled.
|
boolean |
isEnabled(Level level,
Marker marker,
String message,
Object p0,
Object p1,
Object p2,
Object p3)
Determines if logging is enabled.
|
boolean |
isEnabled(Level level,
Marker marker,
String message,
Object p0,
Object p1,
Object p2,
Object p3,
Object p4)
Determines if logging is enabled.
|
boolean |
isEnabled(Level level,
Marker marker,
String message,
Object p0,
Object p1,
Object p2,
Object p3,
Object p4,
Object p5)
Determines if logging is enabled.
|
boolean |
isEnabled(Level level,
Marker marker,
String message,
Object p0,
Object p1,
Object p2,
Object p3,
Object p4,
Object p5,
Object p6)
Determines if logging is enabled.
|
boolean |
isEnabled(Level level,
Marker marker,
String message,
Object p0,
Object p1,
Object p2,
Object p3,
Object p4,
Object p5,
Object p6,
Object p7)
Determines if logging is enabled.
|
boolean |
isEnabled(Level level,
Marker marker,
String message,
Object p0,
Object p1,
Object p2,
Object p3,
Object p4,
Object p5,
Object p6,
Object p7,
Object p8)
Determines if logging is enabled.
|
boolean |
isEnabled(Level level,
Marker marker,
String message,
Object p0,
Object p1,
Object p2,
Object p3,
Object p4,
Object p5,
Object p6,
Object p7,
Object p8,
Object p9)
Determines if logging is enabled.
|
boolean |
isEnabled(Level level,
Marker marker,
String message,
Throwable t)
Detect if the event would be logged.
|
void |
logMessage(String fqcn,
Level level,
Marker marker,
Message message,
Throwable t)
Always log an event.
|
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
protected final ExtendedLogger logger
public ExtendedLoggerWrapper(ExtendedLogger logger, String name, MessageFactory messageFactory)
logger
- The Logger to wrap.name
- The name of the Logger.messageFactory
- TODOpublic Level getLevel()
Logger
public boolean isEnabled(Level level, Marker marker, Message message, Throwable t)
level
- The logging Level to check.marker
- A Marker or null.message
- The Message.t
- A Throwable.public boolean isEnabled(Level level, Marker marker, CharSequence message, Throwable t)
level
- The logging Level to check.marker
- A Marker or null.message
- The message CharSequence.t
- A Throwable.public boolean isEnabled(Level level, Marker marker, Object message, Throwable t)
level
- The logging Level to check.marker
- A Marker or null.message
- The message.t
- A Throwable.public boolean isEnabled(Level level, Marker marker, String message)
level
- The logging Level to check.marker
- A Marker or null.message
- The message.public boolean isEnabled(Level level, Marker marker, String message, Object... params)
level
- The logging Level to check.marker
- A Marker or null.message
- The message.params
- The parameters.public boolean isEnabled(Level level, Marker marker, String message, Object p0)
ExtendedLogger
level
- The logging Level to check.marker
- A Marker or null.message
- The message.p0
- the message parameterspublic boolean isEnabled(Level level, Marker marker, String message, Object p0, Object p1)
ExtendedLogger
level
- The logging Level to check.marker
- A Marker or null.message
- The message.p0
- the message parametersp1
- the message parameterspublic boolean isEnabled(Level level, Marker marker, String message, Object p0, Object p1, Object p2)
ExtendedLogger
level
- The logging Level to check.marker
- A Marker or null.message
- The message.p0
- the message parametersp1
- the message parametersp2
- the message parameterspublic boolean isEnabled(Level level, Marker marker, String message, Object p0, Object p1, Object p2, Object p3)
ExtendedLogger
level
- The logging Level to check.marker
- A Marker or null.message
- The message.p0
- the message parametersp1
- the message parametersp2
- the message parametersp3
- the message parameterspublic boolean isEnabled(Level level, Marker marker, String message, Object p0, Object p1, Object p2, Object p3, Object p4)
ExtendedLogger
level
- The logging Level to check.marker
- A Marker or null.message
- The message.p0
- the message parametersp1
- the message parametersp2
- the message parametersp3
- the message parametersp4
- the message parameterspublic boolean isEnabled(Level level, Marker marker, String message, Object p0, Object p1, Object p2, Object p3, Object p4, Object p5)
ExtendedLogger
level
- The logging Level to check.marker
- A Marker or null.message
- The message.p0
- the message parametersp1
- the message parametersp2
- the message parametersp3
- the message parametersp4
- the message parametersp5
- the message parameterspublic boolean isEnabled(Level level, Marker marker, String message, Object p0, Object p1, Object p2, Object p3, Object p4, Object p5, Object p6)
ExtendedLogger
level
- The logging Level to check.marker
- A Marker or null.message
- The message.p0
- the message parametersp1
- the message parametersp2
- the message parametersp3
- the message parametersp4
- the message parametersp5
- the message parametersp6
- the message parameterspublic boolean isEnabled(Level level, Marker marker, String message, Object p0, Object p1, Object p2, Object p3, Object p4, Object p5, Object p6, Object p7)
ExtendedLogger
level
- The logging Level to check.marker
- A Marker or null.message
- The message.p0
- the message parametersp1
- the message parametersp2
- the message parametersp3
- the message parametersp4
- the message parametersp5
- the message parametersp6
- the message parametersp7
- the message parameterspublic boolean isEnabled(Level level, Marker marker, String message, Object p0, Object p1, Object p2, Object p3, Object p4, Object p5, Object p6, Object p7, Object p8)
ExtendedLogger
level
- The logging Level to check.marker
- A Marker or null.message
- The message.p0
- the message parametersp1
- the message parametersp2
- the message parametersp3
- the message parametersp4
- the message parametersp5
- the message parametersp6
- the message parametersp7
- the message parametersp8
- the message parameterspublic boolean isEnabled(Level level, Marker marker, String message, Object p0, Object p1, Object p2, Object p3, Object p4, Object p5, Object p6, Object p7, Object p8, Object p9)
ExtendedLogger
level
- The logging Level to check.marker
- A Marker or null.message
- The message.p0
- the message parametersp1
- the message parametersp2
- the message parametersp3
- the message parametersp4
- the message parametersp5
- the message parametersp6
- the message parametersp7
- the message parametersp8
- the message parametersp9
- the message parameterspublic boolean isEnabled(Level level, Marker marker, String message, Throwable t)
level
- The logging Level to check.marker
- A Marker or null.message
- The message.t
- A Throwable.public void logMessage(String fqcn, Level level, Marker marker, Message message, Throwable t)
fqcn
- The fully qualified class name of the callerlevel
- The logging levelmarker
- The Markermessage
- The Message.t
- A Throwable or null.Copyright © 1999-1969 The Apache Software Foundation. All Rights Reserved.
Apache Logging, Apache Log4j, Log4j, Apache, the Apache feather logo, the Apache Logging project logo, and the Apache Log4j logo are trademarks of The Apache Software Foundation.