Package org.apache.struts.util
Class TestLogger
java.lang.Object
org.slf4j.helpers.AbstractLogger
org.slf4j.helpers.LegacyAbstractLogger
org.apache.struts.util.TestLogger
- All Implemented Interfaces:
Serializable
,Logger
Logger to collect all log-messages.
- Since:
- Struts 1.4.2
- Author:
- Stefan Graff
- See Also:
-
Field Summary
Modifier and TypeFieldDescriptionprotected final StringBuffer
Buffer to collect all log-messagesprotected static final DateTimeFormatter
The date and time format to use in the log messageFields inherited from class org.slf4j.helpers.AbstractLogger
name
Fields inherited from interface org.slf4j.Logger
ROOT_LOGGER_NAME
-
Constructor Summary
-
Method Summary
Methods inherited from class org.slf4j.helpers.LegacyAbstractLogger
isDebugEnabled, isErrorEnabled, isInfoEnabled, isTraceEnabled, isWarnEnabled
Methods inherited from class org.slf4j.helpers.AbstractLogger
debug, debug, debug, debug, debug, debug, debug, debug, debug, debug, error, error, error, error, error, error, error, error, error, error, getName, info, info, info, info, info, info, info, info, info, info, readResolve, trace, trace, trace, trace, trace, trace, trace, trace, trace, trace, warn, warn, warn, warn, warn, warn, warn, warn, warn, warn
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.slf4j.Logger
atDebug, atError, atInfo, atLevel, atTrace, atWarn, isEnabledForLevel, makeLoggingEventBuilder
-
Field Details
-
DATE_TIME_FORMAT
The date and time format to use in the log message -
buffer
Buffer to collect all log-messages
-
-
Constructor Details
-
TestLogger
Constructor which sets the name of this logger- Parameters:
name
- the name of this logger
-
-
Method Details
-
isTraceEnabled
public boolean isTraceEnabled() -
isDebugEnabled
public boolean isDebugEnabled() -
isInfoEnabled
public boolean isInfoEnabled() -
isWarnEnabled
public boolean isWarnEnabled() -
isErrorEnabled
public boolean isErrorEnabled() -
getFullyQualifiedCallerName
- Specified by:
getFullyQualifiedCallerName
in classAbstractLogger
-
handleNormalizedLoggingCall
protected void handleNormalizedLoggingCall(Level level, Marker marker, String messagePattern, Object[] arguments, Throwable throwable) - Specified by:
handleNormalizedLoggingCall
in classAbstractLogger
-