Class Log4jTaglibLogger

All Implemented Interfaces:
Serializable, Logger, ExtendedLogger, LocationAwareLogger

class Log4jTaglibLogger extends ExtendedLoggerWrapper
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 Details

  • Constructor Details

  • Method Details

    • entry

      protected void entry(String fqcn, Object... params)
      Description copied from class: AbstractLogger
      Logs entry to a method with location information.
      Overrides:
      entry in class AbstractLogger
      Parameters:
      fqcn - The fully qualified class name of the caller.
      params - The parameters to the method.
    • exit

      protected <R> R exit(String fqcn, R result)
      Description copied from class: AbstractLogger
      Logs exiting from a method with the result and location information.
      Overrides:
      exit in class AbstractLogger
      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

      protected void catching(String fqcn, Level level, Throwable t)
      Description copied from class: AbstractLogger
      Logs a Throwable that has been caught with location information.
      Overrides:
      catching in class AbstractLogger
      Parameters:
      fqcn - The fully qualified class name of the caller.
      level - The logging level.
      t - The Throwable.
    • throwing

      protected <T extends Throwable> T throwing(String fqcn, Level level, T t)
      Description copied from class: AbstractLogger
      Logs a Throwable to be thrown.
      Overrides:
      throwing in class AbstractLogger
      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.