Class EventLogManager.EventEntry
java.lang.Object
co.mindus.ip2location.EventLogManager.EventEntry
- Enclosing class:
EventLogManager
Represents a single event entry in the log.
- Author:
- Christopher Mindus
Constructor Summary
ConstructorsConstructorDescriptionEventEntry(EventLogManager.Level level, EventLogManager.EventType type, String message) Creates a new event entry with current timestamp.EventEntry(Instant timestamp, EventLogManager.Level level, EventLogManager.EventType type, String message) Creates a new event entry.Method Summary
Constructor Details
EventEntry
public EventEntry(Instant timestamp, EventLogManager.Level level, EventLogManager.EventType type, String message) Creates a new event entry.EventEntry
Creates a new event entry with current timestamp.
Method Details
getTimestamp
getLevel
getType
getMessage
getFormattedTimestamp
Returns the timestamp formatted for display.toDisplayString
Returns a display string for this entry.toLogLine
Returns the log file line for this entry.toString