| Constructor and Description |
|---|
LogItem(Instant time,
String name,
Level level,
String text,
Throwable throwable)
Create a
LogItem. |
| Modifier and Type | Method and Description |
|---|---|
Level |
getLevel()
Get the
Level of the log event. |
String |
getName()
Get the name of the
Logger that output the log event. |
String |
getText()
Get the text of the log event.
|
Throwable |
getThrowable()
Get the
Throwable associated with the event, or null if none specified. |
Instant |
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 Instant getTime()
public String getName()
Logger that output the log event.public String getText()
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 © 2021. All rights reserved.