|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface LoggingManager
LoggingManager handles logging in Shark.
Field Summary | |
---|---|
static int |
DEBUG_LEVEL
|
static int |
ERROR_LEVEL
|
static int |
FATAL_LEVEL
|
static int |
INFO_LEVEL
|
static int |
WARN_LEVEL
|
Method Summary | |
---|---|
void |
configure(CallbackUtilities cus)
Method configure is called at Shark start up, to configure implementation of LoggingManager. |
void |
debug(WMSessionHandle shandle,
java.lang.String msg)
Log a message object with the DEBUG level. |
void |
debug(WMSessionHandle shandle,
java.lang.String msg,
java.lang.Exception ex)
Log a message object with the DEBUG level. |
void |
debug(WMSessionHandle shandle,
java.lang.String channel,
java.lang.String msg)
Log a message object with the DEBUG level. |
void |
debug(WMSessionHandle shandle,
java.lang.String channel,
java.lang.String msg,
java.lang.Exception ex)
Log a message object with the DEBUG level. |
void |
error(WMSessionHandle shandle,
java.lang.String msg)
Log a message object with the ERROR Level. |
void |
error(WMSessionHandle shandle,
java.lang.String msg,
java.lang.Exception ex)
Log a message object with the ERROR Level. |
void |
error(WMSessionHandle shandle,
java.lang.String channel,
java.lang.String msg)
Log a message object with the ERROR Level. |
void |
error(WMSessionHandle shandle,
java.lang.String channel,
java.lang.String msg,
java.lang.Exception ex)
Log a message object with the ERROR Level. |
void |
info(WMSessionHandle shandle,
java.lang.String msg)
Log a message object with the INFO Level. |
void |
info(WMSessionHandle shandle,
java.lang.String msg,
java.lang.Exception ex)
Log a message object with the INFO Level. |
void |
info(WMSessionHandle shandle,
java.lang.String channel,
java.lang.String msg)
Log a message object with the INFO Level. |
void |
info(WMSessionHandle shandle,
java.lang.String channel,
java.lang.String msg,
java.lang.Exception ex)
Log a message object with the INFO Level. |
boolean |
isEnabled(WMSessionHandle shandle,
int level)
Returns if the specified logging level is enabled for the default channel. |
boolean |
isEnabled(WMSessionHandle shandle,
java.lang.String channel,
int level)
Returns if the specified logging level is enabled for the specified channel. |
void |
warn(WMSessionHandle shandle,
java.lang.String msg)
Log a message object with the WARN Level. |
void |
warn(WMSessionHandle shandle,
java.lang.String msg,
java.lang.Exception ex)
Log a message object with the WARN Level. |
void |
warn(WMSessionHandle shandle,
java.lang.String channel,
java.lang.String msg)
Log a message object with the WARN Level. |
void |
warn(WMSessionHandle shandle,
java.lang.String channel,
java.lang.String msg,
java.lang.Exception ex)
Log a message object with the WARN Level. |
Field Detail |
---|
static final int DEBUG_LEVEL
static final int INFO_LEVEL
static final int WARN_LEVEL
static final int ERROR_LEVEL
static final int FATAL_LEVEL
Method Detail |
---|
void configure(CallbackUtilities cus) throws java.lang.Exception
cus
- an instance of CallbackUtilities used to get
properties for configuring logging in Shark.
java.lang.Exception
- Thrown if configuring doesn't succeed.boolean isEnabled(WMSessionHandle shandle, int level) throws java.lang.Exception
java.lang.Exception
boolean isEnabled(WMSessionHandle shandle, java.lang.String channel, int level) throws java.lang.Exception
java.lang.Exception
void error(WMSessionHandle shandle, java.lang.String msg) throws java.lang.Exception
msg
- the message to log.
java.lang.Exception
- If something unexpected happens.void error(WMSessionHandle shandle, java.lang.String msg, java.lang.Exception ex) throws java.lang.Exception
msg
- the message to log.ex
- the exception to log, including its stack trace.
java.lang.Exception
- If something unexpected happens.void error(WMSessionHandle shandle, java.lang.String channel, java.lang.String msg) throws java.lang.Exception
channel
- the log channel to be used for logging.msg
- the message to log.
java.lang.Exception
- If something unexpected happens.void error(WMSessionHandle shandle, java.lang.String channel, java.lang.String msg, java.lang.Exception ex) throws java.lang.Exception
channel
- the log channel to be used for logging.msg
- the message to log.ex
- the exception to log, including its stack trace.
java.lang.Exception
- If something unexpected happens.void warn(WMSessionHandle shandle, java.lang.String msg) throws java.lang.Exception
msg
- the message to log.
java.lang.Exception
- If something unexpected happens.void warn(WMSessionHandle shandle, java.lang.String msg, java.lang.Exception ex) throws java.lang.Exception
msg
- the message to log.ex
- the exception to log, including its stack trace.
java.lang.Exception
- If something unexpected happens.void warn(WMSessionHandle shandle, java.lang.String channel, java.lang.String msg) throws java.lang.Exception
channel
- the log channel to be used for logging.msg
- the message to log.
java.lang.Exception
- If something unexpected happens.void warn(WMSessionHandle shandle, java.lang.String channel, java.lang.String msg, java.lang.Exception ex) throws java.lang.Exception
channel
- the log channel to be used for logging.msg
- the message to log.ex
- the exception to log, including its stack trace.
java.lang.Exception
- If something unexpected happens.void info(WMSessionHandle shandle, java.lang.String msg) throws java.lang.Exception
msg
- the message to log.
java.lang.Exception
- If something unexpected happens.void info(WMSessionHandle shandle, java.lang.String msg, java.lang.Exception ex) throws java.lang.Exception
msg
- the message to log.ex
- the exception to log, including its stack trace.
java.lang.Exception
- If something unexpected happens.void info(WMSessionHandle shandle, java.lang.String channel, java.lang.String msg) throws java.lang.Exception
channel
- the log channel to be used for logging.msg
- the message to log.
java.lang.Exception
- If something unexpected happens.void info(WMSessionHandle shandle, java.lang.String channel, java.lang.String msg, java.lang.Exception ex) throws java.lang.Exception
channel
- the log channel to be used for logging.msg
- the message to log.ex
- the exception to log, including its stack trace.
java.lang.Exception
- If something unexpected happens.void debug(WMSessionHandle shandle, java.lang.String msg) throws java.lang.Exception
msg
- the message to log.
java.lang.Exception
- If something unexpected happens.void debug(WMSessionHandle shandle, java.lang.String msg, java.lang.Exception ex) throws java.lang.Exception
msg
- the message to log.ex
- the exception to log, including its stack trace.
java.lang.Exception
- If something unexpected happens.void debug(WMSessionHandle shandle, java.lang.String channel, java.lang.String msg) throws java.lang.Exception
channel
- the log channel to be used for logging.msg
- the message to log.
java.lang.Exception
- If something unexpected happens.void debug(WMSessionHandle shandle, java.lang.String channel, java.lang.String msg, java.lang.Exception ex) throws java.lang.Exception
channel
- the log channel to be used for logging.msg
- the message to log.ex
- the exception to log, including its stack trace.
java.lang.Exception
- If something unexpected happens.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |