| Constructor and Description |
|---|
LogItem(long time,
String name,
net.pwall.log.Level level,
Object message,
Throwable throwable)
Create a
LogItem. |
| Modifier and Type | Method and Description |
|---|---|
net.pwall.log.Level |
getLevel()
Get the
Level of the log event. |
Object |
getMessage()
Get the text of the log event.
|
String |
getName()
Get the name of the
Logger that output the log event. |
Throwable |
getThrowable()
Get the
Throwable associated with the event, or null if none specified. |
long |
getTime()
Get the time of the log event.
|
String |
toString()
Create a formatted form of the
LogItem. |
String |
toString(char separator)
Create a formatted form of the
LogItem, using the specified separator. |
public LogItem(long time,
String name,
net.pwall.log.Level level,
Object message,
Throwable throwable)
LogItem.time - the time of the log event in millisecondsname - the name of the Loggerlevel - the Level of the log eventmessage - the text of the log eventthrowable - an optional Throwablepublic long getTime()
public String getName()
Logger that output the log event.public net.pwall.log.Level getLevel()
Level of the log event.Levelpublic Object getMessage()
public Throwable getThrowable()
Throwable associated with the event, or null if none specified.Throwable, or nullpublic String toString()
LogItem.public String toString(char separator)
LogItem, using the specified separator.separator - the custom separatorCopyright © 2024. All rights reserved.