Class JdkLogChute

  • All Implemented Interfaces:
    LogChute

    public class JdkLogChute
    extends java.lang.Object
    implements LogChute
    Implementation of a simple java.util.logging LogChute.
    Since:
    1.5
    Version:
    $Id: JdkLogChute.java 703541 2008-10-10 18:09:42Z nbubna $
    • Field Detail

      • RUNTIME_LOG_JDK_LOGGER

        public static final java.lang.String RUNTIME_LOG_JDK_LOGGER
        Property key for specifying the name for the logger instance
        See Also:
        Constant Field Values
      • RUNTIME_LOG_JDK_LOGGER_LEVEL

        public static final java.lang.String RUNTIME_LOG_JDK_LOGGER_LEVEL
        See Also:
        Constant Field Values
      • DEFAULT_LOG_NAME

        public static final java.lang.String DEFAULT_LOG_NAME
        Default name for the JDK logger instance
        See Also:
        Constant Field Values
      • logger

        protected java.util.logging.Logger logger
    • Constructor Detail

      • JdkLogChute

        public JdkLogChute()
    • Method Detail

      • getJdkLevel

        protected java.util.logging.Level getJdkLevel​(int level)
        Returns the java.util.logging.Level that matches to the specified LogChute level.
        Parameters:
        level -
        Returns:
        The current log level of the JDK Logger.
      • log

        public void log​(int level,
                        java.lang.String message)
        Logs messages
        Specified by:
        log in interface LogChute
        Parameters:
        level - severity level
        message - complete error message
      • log

        public void log​(int level,
                        java.lang.String message,
                        java.lang.Throwable t)
        Send a log message from Velocity along with an exception or error
        Specified by:
        log in interface LogChute
        Parameters:
        level -
        message -
        t -