Class StandardOutLogger

  • All Implemented Interfaces:
    Logger

    public class StandardOutLogger
    extends java.lang.Object
    implements Logger
    • Constructor Summary

      Constructors 
      Constructor Description
      StandardOutLogger​(LogLevel logLevel, java.lang.String name, java.io.PrintStream out, java.io.PrintStream err)  
    • Constructor Detail

      • StandardOutLogger

        public StandardOutLogger​(LogLevel logLevel,
                                 java.lang.String name,
                                 java.io.PrintStream out,
                                 java.io.PrintStream err)
    • Method Detail

      • isTraceEnabled

        public boolean isTraceEnabled()
        Description copied from interface: Logger
        `true` if the logger instance is enabled for the `TRACE` level.
        Specified by:
        isTraceEnabled in interface Logger
        Returns:
        whether TRACE level is enabled
      • isDebugEnabled

        public boolean isDebugEnabled()
        Description copied from interface: Logger
        `true` if the logger instance is enabled for the `DEBUG` level.
        Specified by:
        isDebugEnabled in interface Logger
        Returns:
        whether DEBUG level is enabled
      • isInfoEnabled

        public boolean isInfoEnabled()
        Description copied from interface: Logger
        `true` if the logger instance is enabled for the `INFO` level.
        Specified by:
        isInfoEnabled in interface Logger
        Returns:
        whether INFO level is enabled
      • isWarnEnabled

        public boolean isWarnEnabled()
        Description copied from interface: Logger
        `true` if the logger instance is enabled for the `WARN` level.
        Specified by:
        isWarnEnabled in interface Logger
        Returns:
        whether WARN level is enabled
      • isErrorEnabled

        public boolean isErrorEnabled()
        Description copied from interface: Logger
        `true` if the logger instance is enabled for the `ERROR` level.
        Specified by:
        isErrorEnabled in interface Logger
        Returns:
        whether ERROR level is enabled
      • output

        public void output​(LogLevel level,
                           java.lang.String message)
        Description copied from interface: Logger
        Outputs a log message at the specified level
        Specified by:
        output in interface Logger
        Parameters:
        level - the level to log at
        message - the message to log
      • output

        public void output​(LogLevel level,
                           java.lang.String message,
                           java.lang.Throwable error)
        Description copied from interface: Logger
        Outputs a log message at the specified level
        Specified by:
        output in interface Logger
        Parameters:
        level - the level to log at
        message - the message to log
        error - the associated exception