Class ConsoleLoggerImpl

  • All Implemented Interfaces:
    Logger

    public class ConsoleLoggerImpl
    extends AbstractLogger
    Logger object, log4j implementation
    Author:
    russdanner
    • Constructor Detail

      • ConsoleLoggerImpl

        public ConsoleLoggerImpl()
        package scope constructor
    • Method Detail

      • getName

        public String getName()
        return the name for the logger
      • getLevel

        public String getLevel()
        return the level for the logger
      • debug

        public void debug​(String msg,
                          Object... args)
        log debug message
        Parameters:
        msg - the message or message format to log
        args - argument for the log
      • debug

        public void debug​(String msg,
                          Throwable t,
                          Object... args)
        log debug message
        Parameters:
        msg - the message or message format to log
        t - the error to include
        args - argument for the log
      • warn

        public void warn​(String msg,
                         Object... args)
        log warn message
        Parameters:
        msg - the message or message format to log
        args - argument for the log
      • info

        public void info​(String msg,
                         Object... args)
        log info message
        Parameters:
        msg - the message or message format to log
        args - argument for the log
      • error

        public void error​(String msg,
                          Object... args)
        log error message
        Parameters:
        msg - the message or message format to log
        args - argument for the log
      • error

        public void error​(String msg,
                          Exception err,
                          Object... args)
        log error message
        Parameters:
        msg - the message or message format to log
        err - with error
        args - argument for the log
      • isDebugEnabled

        public boolean isDebugEnabled()
        Description copied from interface: Logger
        Check if debug level is enabled
        Returns:
        true if debug is enabled otherwise false