Class Log4jTaglibLogger

  • All Implemented Interfaces:
    java.io.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
    • Method Detail

      • entry

        protected void entry​(java.lang.String fqcn,
                             java.lang.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​(java.lang.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​(java.lang.String fqcn,
                                Level level,
                                java.lang.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 java.lang.Throwable> T throwing​(java.lang.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.