Package de.uni_kiel.rz.fdr.repl
Class REPLLogEntry
java.lang.Object
de.uni_kiel.rz.fdr.repl.REPLLogEntry
- All Implemented Interfaces:
Serializable
Represents a single log message to be used by
REPLLog
.- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enum
The different levels of criticality for a log message. -
Constructor Summary
ConstructorsConstructorDescriptionREPLLogEntry
(REPLLogEntry.LOG_LEVEL level, Object... messages) Create a new log entry with the timestamp set to now.REPLLogEntry
(String level, Object... messages) Create a new log entry with the timestamp set to now.REPLLogEntry
(Instant timestamp, REPLLogEntry.LOG_LEVEL level, Object... messages) Create a new log entry. -
Method Summary
-
Constructor Details
-
REPLLogEntry
Create a new log entry.- Parameters:
timestamp
- The timestamp of the event that triggered this message.level
- The log level of the message.messages
- The messages to log. The first argument can use the "{}
" placeholder to format the succeeding arguments.
-
REPLLogEntry
Create a new log entry with the timestamp set to now.- Parameters:
level
- The log level of the message.messages
- The messages to log. The first argument can use the "{}
" placeholder to format the succeeding arguments.
-
REPLLogEntry
Create a new log entry with the timestamp set to now.- Parameters:
level
- The textual representation of the message's log level.messages
- The messages to log. The first argument can use the "{}
" placeholder to format the succeeding arguments.
-
-
Method Details
-
getTimestamp
Get the message's event timestamp.- Returns:
- The message's event timestamp.
-
getLevel
Get the log level of the message.- Returns:
- The message's log level.
-
getMessage
Get the textual representation of the message's payload.- Returns:
- The message's payload.
-
toString
-