|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectde.infinityloop.util.log.LogEntry
public class LogEntry
Holds the full information of a log message.
Constructor Summary | |
---|---|
LogEntry(int type,
int err,
java.lang.String msg,
java.lang.Object[] prm,
java.lang.Throwable t)
Constructor for an element of a NotificationCollector entry list. |
Method Summary | |
---|---|
java.lang.Throwable |
getEmbeddedException()
Retrieves any embedded exception. |
int |
getErrorCode()
Retrieves the error code. |
java.lang.String |
getMessage()
retrieves the message as String |
java.lang.Object[] |
getParameters()
retrieves the parameter objects for this entry which were used to format the message |
int |
getType()
retrieves the type of the entry, one of: NotificationCollector.DEBUG NotificationCollector.INFO NotificationCollector.WARN NotificationCollector.ERROR NotificationCollector.FATAL |
java.lang.Object |
getUserObject()
|
void |
setUserObject(java.lang.Object userObject)
|
java.lang.String |
toString()
Same as getMessage() |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public LogEntry(int type, int err, java.lang.String msg, java.lang.Object[] prm, java.lang.Throwable t)
type
- the type of the entry, one of:
err
- the error codemsg
- the completely resolved message stringprm
- the parameters used for formatting the messaget
- any Exception to be embeddedNotificationCollector
Method Detail |
---|
public java.lang.Throwable getEmbeddedException()
null
when there is none.
null
public int getErrorCode()
NotificationCollector
,
Msg
public java.lang.String getMessage()
Msg
public java.lang.Object[] getParameters()
null
if not availableMsg
public java.lang.String toString()
toString
in class java.lang.Object
public int getType()
NotificationCollector
public java.lang.Object getUserObject()
public void setUserObject(java.lang.Object userObject)
userObject
- The userObject to set.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |