Interface Logger

All Superinterfaces:
AutoCloseable, Cloneable, ExtensibleObject
All Known Implementing Classes:
AbstractLogger, AntTaskLogger, BufferedLogger, CompositeLogger, JavaLogger, NoOpLogger

public interface Logger extends ExtensibleObject, AutoCloseable
Interface to class that does the actual logging. Instances will be created by LogService, normally through Scope.getLog(Class)).
  • Method Details

    • close

      default void close() throws Exception
      Specified by:
      close in interface AutoCloseable
      Throws:
      Exception
    • log

      void log(Level level, String message, Throwable e)
      Generic log method that can log at any log level
    • severe

      void severe(String message)
      Log that a severe error that occurred.
    • severe

      void severe(String message, Throwable e)
      Log an error together with data from an error/exception.
    • warning

      void warning(String message)
      Log a event the user should be warned about.
    • warning

      void warning(String message, Throwable e)
      Log a event the user should be warned about together with data from an error/exception.
    • info

      void info(String message)
      Logs a general event that might be useful for the user.
    • info

      void info(String message, Throwable e)
      Logs a general event that might be useful for the user together with data from an error/exception.
    • config

      void config(String message)
      Logs configuration information.
    • config

      void config(String message, Throwable e)
      Logs configuration information together with data from an error/exception.
    • fine

      void fine(String message)
      Logs a debugging event to aid in troubleshooting.
    • fine

      void fine(String message, Throwable e)
      Logs a debugging event to aid in troubleshooting together with data from an error/exception.
    • debug

      void debug(String message)
      Deprecated.
    • debug

      void debug(String message, Throwable e)
      Deprecated.