Record Class ExecutionLogger.LogEntry
java.lang.Object
java.lang.Record
ai.nervemind.app.service.ExecutionLogger.LogEntry
- Record Components:
id- unique ID of the log entryexecutionId- associated execution IDtimestamp- time of logginglevel- log levelcategory- log categorymessage- log messagecontext- extra context data
- Enclosing class:
ExecutionLogger
public static record ExecutionLogger.LogEntry(String id, String executionId, Instant timestamp, ExecutionLogger.LogLevel level, ExecutionLogger.LogCategory category, String message, Map<String,Object> context)
extends Record
Log entry record.
-
Constructor Summary
ConstructorsConstructorDescriptionLogEntry(String id, String executionId, Instant timestamp, ExecutionLogger.LogLevel level, ExecutionLogger.LogCategory category, String message, Map<String, Object> context) Creates an instance of aLogEntryrecord class. -
Method Summary
Modifier and TypeMethodDescriptioncategory()Returns the value of thecategoryrecord component.context()Returns the value of thecontextrecord component.final booleanIndicates whether some other object is "equal to" this one.Returns the value of theexecutionIdrecord component.final inthashCode()Returns a hash code value for this object.id()Returns the value of theidrecord component.level()Returns the value of thelevelrecord component.message()Returns the value of themessagerecord component.Returns the value of thetimestamprecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
LogEntry
public LogEntry(String id, String executionId, Instant timestamp, ExecutionLogger.LogLevel level, ExecutionLogger.LogCategory category, String message, Map<String, Object> context) Creates an instance of aLogEntryrecord class.- Parameters:
id- the value for theidrecord componentexecutionId- the value for theexecutionIdrecord componenttimestamp- the value for thetimestamprecord componentlevel- the value for thelevelrecord componentcategory- the value for thecategoryrecord componentmessage- the value for themessagerecord componentcontext- the value for thecontextrecord component
-
-
Method Details
-
toString
-
hashCode
-
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. All components in this record class are compared withObjects::equals(Object,Object). -
id
-
executionId
Returns the value of theexecutionIdrecord component.- Returns:
- the value of the
executionIdrecord component
-
timestamp
-
level
-
category
-
message
-
context
-