Class SystemOutLoggerFactory.SystemOutLogger

    • Field Summary

      Fields 
      Modifier and Type Field Description
      private static java.lang.String DEBUG  
      private static java.lang.String ERROR  
      private java.lang.String forClass  
      private static java.lang.String INFO  
      private static java.lang.String WARNING  
    • Constructor Summary

      Constructors 
      Constructor Description
      SystemOutLogger​(java.lang.Class<?> forClass)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void debug​(java.lang.String msg)
      Log a message at the DEBUG level.
      void debug​(java.lang.String msg, java.lang.Object... arguments)
      Log a message at the DEBUG level.
      void debug​(java.lang.String msg, java.lang.Throwable t)
      Log a message and an exception at the DEBUG level.
      void error​(java.lang.String msg)
      Log a message at the ERROR level.
      void error​(java.lang.String msg, java.lang.Object... arguments)
      Log a message at the ERROR level.
      void error​(java.lang.String msg, java.lang.Throwable t)
      Log a message and an exception at the ERROR level.
      void info​(java.lang.String msg)
      Log a message at the INFO level.
      void info​(java.lang.String msg, java.lang.Object... arguments)
      Log a message at the INFO level.
      void info​(java.lang.String msg, java.lang.Throwable t)
      Log a message and an exception at the INFO level.
      private void log​(java.lang.String level, java.lang.String msg, java.lang.Throwable t)  
      void warn​(java.lang.String msg)
      Log a message at the WARN level.
      void warn​(java.lang.String msg, java.lang.Object... arguments)
      Log a message at the WARN level.
      void warn​(java.lang.String msg, java.lang.Throwable t)
      Log a message and an exception at the WARN level.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • SystemOutLogger

        SystemOutLogger​(java.lang.Class<?> forClass)
    • Method Detail

      • debug

        public void debug​(java.lang.String msg)
        Description copied from interface: Logger
        Log a message at the DEBUG level.
        Parameters:
        msg - the message to be logged
      • debug

        public void debug​(java.lang.String msg,
                          java.lang.Object... arguments)
        Description copied from interface: Logger
        Log a message at the DEBUG level. Replace {} with the given arguments
        Parameters:
        msg - the message to be logged
        arguments - a list of 3 or more arguments for replacement
      • debug

        public void debug​(java.lang.String msg,
                          java.lang.Throwable t)
        Description copied from interface: Logger
        Log a message and an exception at the DEBUG level.
        Parameters:
        msg - the message to be logged
        t - the exception to be logged
      • info

        public void info​(java.lang.String msg)
        Description copied from interface: Logger
        Log a message at the INFO level.
        Parameters:
        msg - the message to be logged
      • info

        public void info​(java.lang.String msg,
                         java.lang.Object... arguments)
        Description copied from interface: Logger
        Log a message at the INFO level. Replace {} with the given arguments
        Parameters:
        msg - the message to be logged
        arguments - a list of 3 or more arguments for replacement
      • info

        public void info​(java.lang.String msg,
                         java.lang.Throwable t)
        Description copied from interface: Logger
        Log a message and an exception at the INFO level.
        Parameters:
        msg - the message to be logged
        t - the exception to be logged
      • warn

        public void warn​(java.lang.String msg)
        Description copied from interface: Logger
        Log a message at the WARN level.
        Parameters:
        msg - the message to be logged
      • warn

        public void warn​(java.lang.String msg,
                         java.lang.Object... arguments)
        Description copied from interface: Logger
        Log a message at the WARN level. Replace {} with the given arguments
        Parameters:
        msg - the message to be logged
        arguments - a list of 3 or more arguments for replacement
      • warn

        public void warn​(java.lang.String msg,
                         java.lang.Throwable t)
        Description copied from interface: Logger
        Log a message and an exception at the WARN level.
        Parameters:
        msg - the message to be logged
        t - the exception to be logged
      • error

        public void error​(java.lang.String msg)
        Description copied from interface: Logger
        Log a message at the ERROR level.
        Parameters:
        msg - the message to be logged
      • error

        public void error​(java.lang.String msg,
                          java.lang.Object... arguments)
        Description copied from interface: Logger
        Log a message at the ERROR level. Replace {} with the given arguments
        Parameters:
        msg - the message to be logged
        arguments - a list of 3 or more arguments for replacement
      • error

        public void error​(java.lang.String msg,
                          java.lang.Throwable t)
        Description copied from interface: Logger
        Log a message and an exception at the ERROR level.
        Parameters:
        msg - the message to be logged
        t - the exception to be logged
      • log

        private void log​(java.lang.String level,
                         java.lang.String msg,
                         java.lang.Throwable t)