public interface Logger
The following roles are available:
Modifier and Type | Method and Description |
---|---|
void |
close()
Closes the Logger.
|
void |
debug(boolean on)
Enables or disables logging on the DEBUG role.
|
void |
error(boolean on)
Enables or disables logging on the ERROR role.
|
void |
fatal(boolean on)
Enables or disables logging on the FATAL role.
|
void |
info(boolean on)
Enables or disables logging on the INFO role.
|
boolean |
isDebug()
Gets the state of the DEBUG role.
|
boolean |
isError()
Gets the state of the ERROR role.
|
boolean |
isFatal()
Gets the state of the FATAL role.
|
boolean |
isInfo()
Gets the state of the INFO role.
|
boolean |
isOrclLv1()
Gets the state of the ORCL1 role.
|
boolean |
isOrclLv2()
Gets the state of the ORCL2 role.
|
boolean |
isUser()
Gets the state of the USER role.
|
boolean |
isWarn()
Gets the state of the WARN role.
|
void |
logDebug(java.lang.String msg)
Sends a message on the DEBUG role, which will be logged if that role is enabled.
|
void |
logDebug(java.lang.String component,
java.lang.String msg,
java.lang.Throwable throwable)
Sends a message about a component, and a throwable, on the DEBUG role, which will be logged if that role is enabled.
|
void |
logDebug(java.lang.String msg,
java.lang.Throwable throwable)
Sends a message and a throwable on the DEBUG role, which will be logged if that role is enabled.
|
void |
logError(java.lang.String msg)
Sends a message on the ERROR role, which will be logged if that role is enabled.
|
void |
logError(java.lang.String component,
java.lang.String msg,
java.lang.Throwable throwable)
Sends a message about a component, and a throwable, on the ERROR role, which will be logged if that role is enabled.
|
void |
logError(java.lang.String msg,
java.lang.Throwable throwable)
Sends a message and a throwable on the ERROR role, which will be logged if that role is enabled.
|
void |
logFatal(java.lang.String msg)
Sends a message on the FATAL role, which will be logged if that role is enabled.
|
void |
logFatal(java.lang.String component,
java.lang.String msg,
java.lang.Throwable throwable)
Sends a message about a component, and a throwable, on the FATAL role, which will be logged if that role is enabled.
|
void |
logFatal(java.lang.String msg,
java.lang.Throwable throwable)
Sends a message and a throwable on the FATAL role, which will be logged if that role is enabled.
|
void |
logInfo(java.lang.String msg)
Sends a message on the INFO role, which will be logged if that role is enabled.
|
void |
logInfo(java.lang.String component,
java.lang.String msg,
java.lang.Throwable throwable)
Sends a message about a component, and a throwable, on the INFO role, which will be logged if that role is enabled.
|
void |
logInfo(java.lang.String msg,
java.lang.Throwable throwable)
Sends a message and a throwable on the INFO role, which will be logged if that role is enabled.
|
void |
logOrclLv1(java.lang.String msg)
Sends a message about a component, and a throwable, on the ORCL1 role, which will be logged if that role is enabled.
|
void |
logOrclLv2(java.lang.String msg)
Sends a message about a component, and a throwable, on the ORCL2 role, which will be logged if that role is enabled.
|
void |
logUser(java.lang.String msg)
Sends a message on the USER role, which will be logged if that role is enabled.
|
void |
logUser(java.lang.String component,
java.lang.String msg,
java.lang.Throwable throwable)
Sends a message about a component, and a throwable, on the USER role, which will be logged if that role is enabled.
|
void |
logUser(java.lang.String msg,
java.lang.Throwable throwable)
Sends a message and a throwable on the USER role, which will be logged if that role is enabled.
|
void |
logWarn(java.lang.String msg)
Sends a message on the WARN role, which will be logged if that role is enabled.
|
void |
logWarn(java.lang.String component,
java.lang.String msg,
java.lang.Throwable throwable)
Sends a message about a component, and a throwable, on the WARN role, which will be logged if that role is enabled.
|
void |
logWarn(java.lang.String msg,
java.lang.Throwable throwable)
Sends a message and a throwable on the WARN role, which will be logged if that role is enabled.
|
void |
orclLv1(boolean on)
Enables or disables logging on the ORCL1 role.
|
void |
orclLv2(boolean on)
Enables or disables logging on the ORCL2 role.
|
void |
user(boolean on)
Enables or disables logging on the USER role.
|
void |
warn(boolean on)
Enables or disables logging on the WARN role.
|
void user(boolean on)
on
- if true logging to the USER role is enabled.void debug(boolean on)
on
- if true logging to the DEBUG role is enabled.void info(boolean on)
on
- if true logging to the INFO role is enabled.void warn(boolean on)
on
- if true logging to the WARN role is enabled.void error(boolean on)
on
- if true logging to the ERROR role is enabled.void fatal(boolean on)
on
- if true logging to the FATAL role is enabled.void orclLv1(boolean on)
on
- if true logging to the ORCL1 role is enabled.void orclLv2(boolean on)
on
- if true logging to the ORCL2 role is enabled.boolean isUser()
boolean isDebug()
boolean isInfo()
boolean isWarn()
boolean isError()
boolean isFatal()
boolean isOrclLv1()
boolean isOrclLv2()
void logUser(java.lang.String msg)
msg
- the message to log.void logUser(java.lang.String msg, java.lang.Throwable throwable)
msg
- the message to log.throwable
- the throwable to log.void logUser(java.lang.String component, java.lang.String msg, java.lang.Throwable throwable)
component
- the component name to log.msg
- the message to log.throwable
- the throwable to log.void logDebug(java.lang.String msg)
msg
- the message to log.void logDebug(java.lang.String msg, java.lang.Throwable throwable)
msg
- the message to log.throwable
- the throwable to log.void logDebug(java.lang.String component, java.lang.String msg, java.lang.Throwable throwable)
component
- the component name to log.msg
- the message to log.throwable
- the throwable to log.void logInfo(java.lang.String msg)
msg
- the message to log.void logInfo(java.lang.String msg, java.lang.Throwable throwable)
msg
- the message to log.throwable
- the throwable to log.void logInfo(java.lang.String component, java.lang.String msg, java.lang.Throwable throwable)
component
- the component name to log.msg
- the message to log.throwable
- the throwable to log.void logWarn(java.lang.String msg)
msg
- the message to log.void logWarn(java.lang.String msg, java.lang.Throwable throwable)
msg
- the message to log.throwable
- the throwable to log.void logWarn(java.lang.String component, java.lang.String msg, java.lang.Throwable throwable)
component
- the component name to log.msg
- the message to log.throwable
- the throwable to log.void logError(java.lang.String msg)
msg
- the message to log.void logError(java.lang.String msg, java.lang.Throwable throwable)
msg
- the message to log.throwable
- the throwable to log.void logError(java.lang.String component, java.lang.String msg, java.lang.Throwable throwable)
component
- the component name to log.msg
- the message to log.throwable
- the throwable to log.void logFatal(java.lang.String msg)
msg
- the message to log.void logFatal(java.lang.String msg, java.lang.Throwable throwable)
msg
- the message to log.throwable
- the throwable to log.void logFatal(java.lang.String component, java.lang.String msg, java.lang.Throwable throwable)
component
- the component name to log.msg
- the message to log.throwable
- the throwable to log.void close()
void logOrclLv1(java.lang.String msg)
msg
- the message to log.void logOrclLv2(java.lang.String msg)
msg
- the message to log.