Package org.jfree.util
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 theLog
class and will then receive logging messages generated by the code.- Author:
- Thomas Morgner
-
-
Method Summary
All Methods Instance Methods Abstract Methods 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 Detail
-
ERROR
static final int ERROR
Loglevel ERROR.- See Also:
- Constant Field Values
-
WARN
static final int WARN
Loglevel WARN.- See Also:
- Constant Field Values
-
INFO
static final int INFO
Loglevel INFO.- See Also:
- Constant Field Values
-
DEBUG
static final int DEBUG
Loglevel DEBUG.- See Also:
- Constant Field Values
-
LEVELS
static final String[] LEVELS
Strings for the log levels.
-
-
Method Detail
-
log
void log(int level, Object message)
Logs a message at a specified log level.- Parameters:
level
- the log level.message
- the log message.
-
-