Class TestLogger

All Implemented Interfaces:
Serializable, Logger

public class TestLogger extends LegacyAbstractLogger
Logger to collect all log-messages.
Since:
Struts 1.4.2
Author:
Stefan Graff
See Also:
  • Field Details

    • DATE_TIME_FORMAT

      protected static final DateTimeFormatter DATE_TIME_FORMAT
      The date and time format to use in the log message
    • buffer

      protected final StringBuffer buffer
      Buffer to collect all log-messages
  • Constructor Details

    • TestLogger

      public TestLogger(String name)
      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

      protected String getFullyQualifiedCallerName()
      Specified by:
      getFullyQualifiedCallerName in class AbstractLogger
    • handleNormalizedLoggingCall

      protected void handleNormalizedLoggingCall(Level level, Marker marker, String messagePattern, Object[] arguments, Throwable throwable)
      Specified by:
      handleNormalizedLoggingCall in class AbstractLogger