|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.digi.config.util.SystemLog
This is a helper class for logging messages in the Config system. This class includes a variety of logging methods to simplify accessing the system log controller and logging a message. The helper methods in this class create and manage a singleton instance of the SystemLogCtlr. There will be one instance running on each system in the network. Since the helper methods are all static, users do not have to have a reference to the SystemLogCtlr, the static methods grab the singleton instance and use it directly. This class primarily exports simple log methods. For more intricate controller methods use the getSystemLogCtlr() method to access the singleton. For more detailed information on log messages and their use see:
SystemLogEntry
Field Summary | |
(package private) static java.lang.String |
defaultRBName
|
Constructor Summary | |
SystemLog()
|
Method Summary | |
static SystemLogEntry |
debug(java.lang.String msg)
Helper to send a debug message to the system log. |
static SystemLogEntry |
debug(java.lang.String msg,
java.lang.Throwable t)
Helper to send a debug message & associated exception to the system log. |
static SystemLogCtlrImpl |
getSystemLogCtlr()
Returns the SystemLogCtlr singleton, creating it if necessary. |
static SystemLogCtlrImpl |
getSystemLogCtlr(java.lang.String resourceKey)
Returns the SystemLogCtlr singleton, creating it if necessary. |
static SystemLogEntry |
log(java.lang.String msgId)
Helper to send a simple message to the system log. |
static SystemLogEntry |
log(java.lang.String msgId,
java.io.Serializable[] msgParams)
Helper to send a parameterized message to the system log. |
static SystemLogEntry |
log(java.lang.String msgId,
java.io.Serializable[] msgParams,
java.io.Serializable[] detailMsgParams)
Helper to send a parameterized message with detailed text to the system log. |
static SystemLogEntry |
log(java.lang.String msgId,
java.io.Serializable[] msgParams,
java.io.Serializable[] detailMsgParams,
int severity)
Helper to send a parameterized message with detailed text to the system log. |
static SystemLogEntry |
log(java.lang.String msgId,
java.io.Serializable[] msgParams,
java.io.Serializable[] detailMsgParams,
int severity,
java.lang.Throwable t)
Helper to send a parameterized message with detailed text & associated exception to the system log. |
static SystemLogEntry |
log(java.lang.String msgId,
java.io.Serializable[] msgParams,
java.io.Serializable[] detailMsgParams,
java.lang.Throwable t)
Helper to send a parameterized message & associated exception with detailed text to the system log. |
static SystemLogEntry |
log(java.lang.String msgId,
java.io.Serializable[] msgParams,
java.lang.Throwable t)
Helper to send a parameterized message & associated exception to the system log. |
static SystemLogEntry |
log(java.lang.String msgId,
java.lang.String msgRbName,
java.io.Serializable[] msgParams,
java.io.Serializable[] detailMsgParams,
int severity,
java.lang.Throwable t)
Helper to send a parameterized message with detailed text to the system log. |
static SystemLogEntry |
log(java.lang.String msgId,
java.lang.Throwable t)
Helper to send a simple message & associated exception to the system log. |
static SystemLogEntry |
log(SystemLogEntry entry)
Helper to send a SystemLogEntry to the SystemLogCtlr Note that all the other helper methods end up calling this one. |
static SystemLogEntry |
log(java.lang.Throwable t)
Helper to send an Exception message to the system log. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
static java.lang.String defaultRBName
Constructor Detail |
public SystemLog()
Method Detail |
public static SystemLogEntry log(java.lang.String msgId)
msgId
- The Id of the message to send to the logpublic static SystemLogEntry log(java.lang.String msgId, java.lang.Throwable t)
msgId
- The Id of the message to send to the logt
- the error that occured. The exception information will be attached to the log entry.public static SystemLogEntry log(java.lang.String msgId, java.io.Serializable[] msgParams)
msgId
- The Id of the message to send to the logmsgParams
- parameters available for both the message & the detailed messagepublic static SystemLogEntry log(java.lang.String msgId, java.io.Serializable[] msgParams, java.lang.Throwable t)
msgId
- The Id of the message to send to the logmsgParams
- parameters available for both the message & the detailed messaget
- the error that occured. The exception information will be attached to the log entry.public static SystemLogEntry log(java.lang.String msgId, java.io.Serializable[] msgParams, java.io.Serializable[] detailMsgParams)
msgId
- The Id of the message to send to the logmsgParams
- parameters for the messagedetailMsgParams
- parameters for the detailed messagepublic static SystemLogEntry log(java.lang.String msgId, java.io.Serializable[] msgParams, java.io.Serializable[] detailMsgParams, java.lang.Throwable t)
msgId
- The Id of the message to send to the logmsgParams
- parameters for the messagedetailMsgParams
- parameters for the detailed messaget
- the error that occured. The exception information will be attached to the log entry.public static SystemLogEntry log(java.lang.String msgId, java.io.Serializable[] msgParams, java.io.Serializable[] detailMsgParams, int severity)
msgId
- The Id of the message to send to the logmsgParams
- parameters for the messagedetailMsgParams
- parameters for the detailed messageseverity
- the severity to assign to this messagepublic static SystemLogEntry log(java.lang.String msgId, java.io.Serializable[] msgParams, java.io.Serializable[] detailMsgParams, int severity, java.lang.Throwable t)
msgId
- The Id of the message to send to the logmsgParams
- parameters for the messagedetailMsgParams
- parameters for the detailed messageseverity
- the severity to assign to this messaget
- the error that occured. The exception information will be attached to the log entry.public static SystemLogEntry log(java.lang.String msgId, java.lang.String msgRbName, java.io.Serializable[] msgParams, java.io.Serializable[] detailMsgParams, int severity, java.lang.Throwable t)
msgId
- The Id of the message to send to the logmsgRbName
- The name of the resource bundle to locate the message inmsgParams
- parameters for the messagedetailMsgParams
- parameters for the detailed messageseverity
- the severity to assign to this messagepublic static SystemLogEntry log(java.lang.Throwable t)
t
- The exception or throwable to send to the logpublic static SystemLogEntry log(SystemLogEntry entry)
entry
- The entry to send to the system logpublic static SystemLogEntry debug(java.lang.String msg)
msg
- The text of the message to include in the debug message.public static SystemLogEntry debug(java.lang.String msg, java.lang.Throwable t)
msg
- The text of the message to include in the debug message.t
- The exception or throwable to send to the logpublic static SystemLogCtlrImpl getSystemLogCtlr()
public static SystemLogCtlrImpl getSystemLogCtlr(java.lang.String resourceKey)
resourceKey
- the resource key that defines the name of the system log file
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |