public class LogEntry
extends java.lang.Object
Constructor and Description |
---|
LogEntry(java.util.logging.Level level,
long timestamp,
java.lang.String message) |
Modifier and Type | Method and Description |
---|---|
java.util.logging.Level |
getLevel()
Gets the logging entry's severity.
|
java.lang.String |
getMessage()
Gets the log entry's message.
|
long |
getTimestamp()
Gets the timestamp of the log statement in milliseconds since UNIX Epoch.
|
java.util.Map<java.lang.String,java.lang.Object> |
toMap() |
java.lang.String |
toString() |
public LogEntry(java.util.logging.Level level, long timestamp, java.lang.String message)
level
- the severity of the log entrytimestamp
- UNIX Epoch timestamp at which this log entry was createdmessage
- ew the log entry's messagepublic java.util.logging.Level getLevel()
public long getTimestamp()
public java.lang.String getMessage()
public java.lang.String toString()
toString
in class java.lang.Object
public java.util.Map<java.lang.String,java.lang.Object> toMap()