java.lang.Object
de.uni_hildesheim.sse.easy.loader.framework.Log

public class Log extends Object
Very simple logging support.
Author:
Holger Eichelberger
  • Field Details

  • Constructor Details

    • Log

      public Log()
  • Method Details

    • getLogger

      public static Log.LoaderLogger getLogger()
      Returns the logger instance.
      Returns:
      the logger instance
    • setLogger

      public static void setLogger(Log.LoaderLogger newLogger)
      Defines a new logger instance.
      Parameters:
      newLogger - the new logger instance (ignored if null)
    • error

      public static void error(String error)
      Logs an error.
      Parameters:
      error - the error text
    • error

      public static void error(String error, Exception exception)
      Logs an error with exception.
      Parameters:
      error - the error text
      exception - the exception to be added
    • warn

      public static void warn(String warning)
      Logs a warning.
      Parameters:
      warning - the warning text
    • warn

      public static void warn(String warning, Exception exception)
      Emits a warning to the console and adds the message of the given exception.
      Parameters:
      warning - the warning text
      exception - the exception to be added
    • info

      public static void info(String msg)
      Logs an information message.
      Parameters:
      msg - the message to be logged