Interface MessageLogger

All Known Implementing Classes:
AbstractMessageLogger, AntMessageLogger, DefaultMessageLogger, MessageLoggerEngine

public interface MessageLogger
A MessageLogger is used to log messages.

Where the messages are logged is depending on the implementation.

This interface provides both level specific methods (info(String), warn(String) , ...) and generic methods (log(String, int), rawlog(String, int)). Note that calling level specific methods is usually not equivalent to calling the generic method with the corresponding level. Indeed, for warn and error level, the implementation will actually log the message at a lower level (usually Message.MSG_VERBOSE) and log the message at the actual level only when sumupProblems() is called.

See Also:
  • Method Details

    • log

      void log(String msg, int level)
      Logs a message at the given level.

      level constants are defined in the Message class.

      Parameters:
      msg - the message to log
      level - the level at which the message should be logged.
      See Also:
    • rawlog

      void rawlog(String msg, int level)
      Same as log(String, int), but without adding any contextual information to the message.
      Parameters:
      msg - the message to log
      level - the level at which the message should be logged.
    • debug

      void debug(String msg)
    • verbose

      void verbose(String msg)
    • deprecated

      void deprecated(String msg)
    • info

      void info(String msg)
    • rawinfo

      void rawinfo(String msg)
    • warn

      void warn(String msg)
    • error

      void error(String msg)
    • getProblems

      List<String> getProblems()
    • getWarns

      List<String> getWarns()
    • getErrors

      List<String> getErrors()
    • clearProblems

      void clearProblems()
      Clears the list of problems, warns and errors.
    • sumupProblems

      void sumupProblems()
      Sumup all problems encountered so far, and clear them.
    • progress

      void progress()
    • endProgress

      void endProgress()
    • endProgress

      void endProgress(String msg)
    • isShowProgress

      boolean isShowProgress()
    • setShowProgress

      void setShowProgress(boolean progress)