org.jfree.util

Interface LogTarget

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
static intDEBUG
Loglevel DEBUG.
static intERROR
Loglevel ERROR.
static intINFO
Loglevel INFO.
static String[]LEVELS
Strings for the log levels.
static intWARN
Loglevel WARN.
Method Summary
voidlog(int level, Object message)
Logs a message at a specified log level.
voidlog(int level, Object message, Exception e)
Logs a message at a specified log level.

Field Detail

DEBUG

public static final int DEBUG
Loglevel DEBUG.

ERROR

public static final int ERROR
Loglevel ERROR.

INFO

public static final int INFO
Loglevel INFO.

LEVELS

public static final String[] LEVELS
Strings for the log levels.

WARN

public static final int WARN
Loglevel WARN.

Method Detail

log

public void log(int level, Object message)
Logs a message at a specified log level.

Parameters: level the log level. message the log message.

log

public 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