Interface LogTarget

All Known Implementing Classes:
PrintStreamLogTarget

public interface LogTarget
An interface that defines a log target (a consumer of log messages). Classes which implement this interface can be registered with the Log class and will then receive logging messages generated by the code.
Author:
Thomas Morgner
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final int
    Loglevel DEBUG.
    static final int
    Loglevel ERROR.
    static final int
    Loglevel INFO.
    static final String[]
    Strings for the log levels.
    static final int
    Loglevel WARN.
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    log(int level, Object message)
    Logs a message at a specified log level.
    void
    log(int level, Object message, Exception e)
    Logs a message at a specified log level.
  • Field Details

  • Method Details

    • log

      void log(int level, Object message)
      Logs a message at a specified log level.
      Parameters:
      level - the log level.
      message - the log message.
    • log

      void log(int level, Object message, Exception e)
      Logs a message at a specified log level.
      Parameters:
      level - the log level.
      message - the log message.
      e - the exception