Package me.legrange.log
Class Event
- java.lang.Object
-
- me.legrange.log.Event
-
public final class Event extends Object
A log entry- Author:
- gideon1
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description LevelgetLevel()Get the log level at which this event is loggedStringgetMessage()Get the logged messageOptional<Throwable>getThrowable()Get the exception associated with this event if there is one.DategetTimestamp()Get the timestamp of the logged eventUUIDgetUuid()Get the UUID for this event
-
-
-
Method Detail
-
getMessage
public String getMessage()
Get the logged message- Returns:
- The message.
-
getTimestamp
public Date getTimestamp()
Get the timestamp of the logged event- Returns:
- The timestamp
-
getLevel
public Level getLevel()
Get the log level at which this event is logged- Returns:
- The level
-
getThrowable
public Optional<Throwable> getThrowable()
Get the exception associated with this event if there is one.- Returns:
- An optional exception
-
getUuid
public UUID getUuid()
Get the UUID for this event- Returns:
- The UUID
-
-