Package org.apache.logging.log4j.taglib
Class Log4jTaglibLogger
java.lang.Object
org.apache.logging.log4j.spi.AbstractLogger
org.apache.logging.log4j.spi.ExtendedLoggerWrapper
org.apache.logging.log4j.taglib.Log4jTaglibLogger
- All Implemented Interfaces:
Serializable,Logger,ExtendedLogger,LocationAwareLogger
The bridge between the tag library and the Log4j API ensures that the source information for log events is
the JSP Servlet and not one of the taglib classes.
- Since:
- 2.0
-
Field Summary
FieldsFields inherited from class org.apache.logging.log4j.spi.ExtendedLoggerWrapper
loggerFields inherited from class org.apache.logging.log4j.spi.AbstractLogger
CATCHING_MARKER, DEFAULT_FLOW_MESSAGE_FACTORY_CLASS, DEFAULT_MESSAGE_FACTORY_CLASS, ENTRY_MARKER, EXCEPTION_MARKER, EXIT_MARKER, FLOW_MARKER, logBuilder, name, THROWING_MARKER -
Constructor Summary
ConstructorsConstructorDescriptionLog4jTaglibLogger(ExtendedLogger logger, String name, MessageFactory messageFactory) -
Method Summary
Modifier and TypeMethodDescriptionprotected voidLogs a Throwable that has been caught with location information.protected voidLogs entry to a method with location information.protected <R> RLogs exiting from a method with the result and location information.protected <T extends Throwable>
TLogs a Throwable to be thrown.Methods inherited from class org.apache.logging.log4j.spi.ExtendedLoggerWrapper
getLevel, isEnabled, isEnabled, isEnabled, isEnabled, isEnabled, isEnabled, isEnabled, isEnabled, isEnabled, isEnabled, isEnabled, isEnabled, isEnabled, isEnabled, isEnabled, isEnabled, logMessageMethods inherited from class org.apache.logging.log4j.spi.AbstractLogger
always, atDebug, atError, atFatal, atInfo, atLevel, atTrace, atWarn, 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, 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, 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, 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
-
Field Details
-
serialVersionUID
private static final long serialVersionUID- See Also:
-
-
Constructor Details
-
Log4jTaglibLogger
-
-
Method Details
-
entry
Description copied from class:AbstractLoggerLogs entry to a method with location information.- Overrides:
entryin classAbstractLogger- Parameters:
fqcn- The fully qualified class name of the caller.params- The parameters to the method.
-
exit
Description copied from class:AbstractLoggerLogs exiting from a method with the result and location information.- Overrides:
exitin classAbstractLogger- Type Parameters:
R- The type of the parameter and object being returned.- Parameters:
fqcn- The fully qualified class name of the caller.result- The result being returned from the method call.- Returns:
- the return value passed to this method.
-
catching
Description copied from class:AbstractLoggerLogs a Throwable that has been caught with location information.- Overrides:
catchingin classAbstractLogger- Parameters:
fqcn- The fully qualified class name of the caller.level- The logging level.t- The Throwable.
-
throwing
Description copied from class:AbstractLoggerLogs a Throwable to be thrown.- Overrides:
throwingin classAbstractLogger- Type Parameters:
T- the type of the Throwable.- Parameters:
fqcn- the fully qualified class name of this Logger implementation.level- The logging Level.t- The Throwable.- Returns:
- the Throwable.
-