Package io.goobi.viewer.model.log
Record Class LogLine
java.lang.Object
java.lang.Record
io.goobi.viewer.model.log.LogLine
- Record Components:
timestamp- ISO-formatted timestamp string from the log entrylevel- log level (INFO, WARN, ERROR, DEBUG, TRACE)thread- name of the thread that produced the log entrylocation- source location (logger name or class) of the log entrymessage- message body, including any stacktrace continuation lines
public record LogLine(String timestamp, String level, String thread, String location, String message)
extends Record
Immutable representation of a single parsed log line.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.level()Returns the value of thelevelrecord component.location()Returns the value of thelocationrecord component.message()Returns the value of themessagerecord component.thread()Returns the value of thethreadrecord component.Returns the value of thetimestamprecord component.toJson()final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
LogLine
Creates an instance of aLogLinerecord class.
-
-
Method Details
-
toJson
-
toString
Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components. -
hashCode
public final int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
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). -
timestamp
Returns the value of thetimestamprecord component.- Returns:
- the value of the
timestamprecord component
-
level
Returns the value of thelevelrecord component.- Returns:
- the value of the
levelrecord component
-
thread
Returns the value of thethreadrecord component.- Returns:
- the value of the
threadrecord component
-
location
Returns the value of thelocationrecord component.- Returns:
- the value of the
locationrecord component
-
message
Returns the value of themessagerecord component.- Returns:
- the value of the
messagerecord component
-