public interface Logger
One can customize the loggers used by evaluation and model loading/writing, by subclassing this interface and registering the implementation to the workbench configuration.
Clients may implement this interface.
WorkbenchConfiguration.getLogger()
Modifier and Type | Method and Description |
---|---|
void |
debug(Object message)
Logs a debug level message.
|
void |
debug(Object message,
String filename,
int lineNumber,
int columnNumber)
Logs a debug level message.
|
void |
debug(Object message,
Throwable error)
Logs a debug level message.
|
void |
error(Object message)
Logs an error level message.
|
void |
error(Object message,
String filename,
int lineNumber,
int columnNumber)
Logs an error level message.
|
void |
error(Object message,
Throwable error)
Logs an error level message.
|
Level |
getLevel()
Get the log Level that has been specified for this logger.
|
void |
info(Object message)
Logs an info level message.
|
void |
info(Object message,
String filename,
int lineNumber,
int columnNumber)
Logs an info level message, with the specified file location.
|
void |
info(Object message,
Throwable error)
Logs an info level message.
|
boolean |
isLoggable(Level level)
Check if a message of the given level would actually be logged by this logger.
|
void |
setLevel(Level level)
Set the log level specifying which message levels will be logged by this logger.
|
void |
warning(Object message)
Logs a warning level message.
|
void |
warning(Object message,
String filename,
int lineNumber,
int columnNumber)
Logs a warning level message.
|
void |
warning(Object message,
Throwable error)
Logs a warning level message.
|
Level getLevel()
INFO
.null
).void setLevel(Level level)
level
- the new level to use.boolean isLoggable(Level level)
level
- a message logging level.true
if the given message level is currently being logged.void debug(Object message)
Debug messages are used to assist in debugging problems that may be associated with particular configurations.
message
- the information to log (usually a String
)void debug(Object message, String filename, int lineNumber, int columnNumber)
This method is typically used when parsing a model file and when a parsing debug information must be logged.
Debug messages are used to assist in debugging problems that may be associated with particular configurations.
message
- the information to log (usually a String
)filename
- the current file from which this message originates.lineNumber
- the current file line number.columnNumber
- the current file column number.void debug(Object message, Throwable error)
Debug messages are used to assist in debugging problems that may be associated with particular configurations.
message
- the information to log (usually a String
), maybe null
error
- an exception to log.void info(Object message)
Info messages should only be used for reasonably significant messages that will make sense to end users and system admins.
message
- the information to log (usually a String
)void info(Object message, String filename, int lineNumber, int columnNumber)
This method is typically used when parsing a model file and when a parsing information must be logged.
Info messages should only be used for reasonably significant messages that will make sense to end users and system admins.
message
- the information to log (usually a String
)filename
- the current file from which this message originates.lineNumber
- the current file line number.columnNumber
- the current file column number.void info(Object message, Throwable error)
Info messages should only be used for reasonably significant messages that will make sense to end users and system admins.
message
- the information to log (usually a String
), maybe null
error
- an exception to log.void warning(Object message)
In general, warning messages should describe events that will be of interest to end users or system managers, or which indicate potential problems.
message
- the information to log (usually a String
)void warning(Object message, String filename, int lineNumber, int columnNumber)
This method is typically used when parsing a model file and when a parsing warning must be logged.
In general, warning messages should describe events that will be of interest to end users or system managers, or which indicate potential problems.
message
- the information to log (usually a String
)filename
- the current file from which this message originates.lineNumber
- the current file line number.columnNumber
- the current file column number.void warning(Object message, Throwable error)
In general, warning messages should describe events that will be of interest to end users or system managers, or which indicate potential problems.
message
- the information to log (usually a String
), maybe null
error
- an exception to log.void error(Object message)
In general, error messages should describe events that are of considerable importance and which will prevent normal program execution. They should be reasonably intelligible to end users and to system administrators.
message
- the information to log (usually a String
)void error(Object message, String filename, int lineNumber, int columnNumber)
This method is typically used when parsing a model file and when a parsing recoverable error must be logged.
In general, error messages should describe events that are of considerable importance and which will prevent normal program execution. They should be reasonably intelligible to end users and to system administrators.
message
- the information to log (usually a String
)filename
- the current file from which this message originates.lineNumber
- the current file line number.columnNumber
- the current file column number.void error(Object message, Throwable error)
In general, error messages should describe events that are of considerable importance and which will prevent normal program execution. They should be reasonably intelligible to end users and to system administrators.
message
- the information to log (usually a String
), maybe null
error
- an exception to log.