|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectde.infinityloop.util.log.LogEvent
public class LogEvent
Holds the full information of a log message.
| Field Summary | |
|---|---|
static int |
ALL
|
static int |
DEBUG
|
static int |
DETAIL
|
static int |
ERROR
|
static int |
FATAL
|
static int |
INFO
|
static int |
INHERIT
|
static java.lang.String |
kMDCApplicationKey
|
static java.lang.String |
kMDCComponentKey
|
static java.lang.String |
kMDCModuleKey
|
static java.lang.String |
kMDCPipelineKey
|
static java.lang.String |
kMDCRootKey
|
static int |
OFF
|
static int |
TRACE
|
static int |
UNSET
|
static int |
VERBOSE
|
static int |
WARN
|
static int |
WARNING
|
| Constructor Summary | |
|---|---|
LogEvent(int level,
int messagecode,
java.lang.String message)
|
|
LogEvent(int msg,
java.lang.Object par1)
|
|
LogEvent(int msg,
java.lang.Object[] prm)
|
|
LogEvent(int msg,
java.lang.Object[] prm,
java.lang.Throwable t)
Constructor for an element of a NotificationCollector entry list. |
|
LogEvent(int msg,
java.lang.Object par1,
java.lang.Object par2)
|
|
LogEvent(int level,
java.lang.String message)
|
|
LogEvent(int msg,
java.lang.String msgTemplate,
java.lang.Object[] prm,
java.lang.Throwable t)
|
|
| Method Summary | |
|---|---|
java.lang.Throwable |
getAssociatedException()
Retrieves any embedded exception. |
java.lang.String |
getFullMessage()
Formats the final message, including context and timestamp info. |
static int |
getLevelId(java.lang.String l)
Translate a human readable string representation into a numeric message level |
static java.lang.String |
getLevelName(int l)
Translate numeric level into a human readable string representation |
java.lang.String |
getMessage()
Formats the final message. |
int |
getMessageCode()
Retrieves the error code. |
int |
getMessageLevel()
Calculate the message type from its code |
java.lang.Object[] |
getMessageParameters()
retrieves the parameter objects for this entry which were used to format the message |
java.lang.String |
getMessageTemplate()
retrieves the message template as String from the common Msg resource |
java.lang.String |
getMessageTimestamp()
Format this LogEvent's time stamp into something usable for diaply in a log file. |
static void |
popAndRestoreMDC(java.lang.String key,
java.lang.String savedMessage)
Restore a saved message to the MDC. |
static java.lang.String |
saveAndPushMDC(java.lang.String key,
java.lang.String message)
Remember the old value and push a new one to the MDC. |
static void |
setMessageBundle(java.lang.String bundleName)
|
java.lang.String |
toString()
Same as getMessage() |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final java.lang.String kMDCRootKey
public static final java.lang.String kMDCApplicationKey
public static final java.lang.String kMDCPipelineKey
public static final java.lang.String kMDCModuleKey
public static final java.lang.String kMDCComponentKey
public static final int UNSET
public static final int INHERIT
public static final int OFF
public static final int FATAL
public static final int ERROR
public static final int WARN
public static final int WARNING
public static final int INFO
public static final int DEBUG
public static final int VERBOSE
public static final int DETAIL
public static final int TRACE
public static final int ALL
| Constructor Detail |
|---|
public LogEvent(int msg,
java.lang.Object[] prm,
java.lang.Throwable t)
msg - the message codeprm - the parameters to be used for formatting the messaget - any Exception associated with the log objectLogEventCollector
public LogEvent(int msg,
java.lang.Object par1)
public LogEvent(int msg,
java.lang.Object par1,
java.lang.Object par2)
public LogEvent(int msg,
java.lang.Object[] prm)
public LogEvent(int msg,
java.lang.String msgTemplate,
java.lang.Object[] prm,
java.lang.Throwable t)
public LogEvent(int level,
java.lang.String message)
public LogEvent(int level,
int messagecode,
java.lang.String message)
| Method Detail |
|---|
public java.lang.Throwable getAssociatedException()
null when there is none.
nullpublic int getMessageCode()
LogEventCollector,
Msgpublic java.lang.String getMessageTemplate()
Msgpublic java.lang.String getMessage()
Msgpublic java.lang.String getFullMessage()
Msgpublic java.lang.Object[] getMessageParameters()
null if not availableMsgpublic java.lang.String toString()
toString in class java.lang.Objectpublic int getMessageLevel()
code -
public static void setMessageBundle(java.lang.String bundleName)
public static java.lang.String getLevelName(int l)
l - the level
public static int getLevelId(java.lang.String l)
l - the level
public java.lang.String getMessageTimestamp()
public static java.lang.String saveAndPushMDC(java.lang.String key,
java.lang.String message)
key - message -
public static void popAndRestoreMDC(java.lang.String key,
java.lang.String savedMessage)
key - savedMessage -
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||