Package org.ametys.runtime.log
Record Class MemoryLogRecord
java.lang.Object
java.lang.Record
org.ametys.runtime.log.MemoryLogRecord
- Record Components:
category- the category of this recordmillis- the time of this record in milliseconds from 1970.level- the Level of this record.message- the message of this record.location- the string containing the location information.user- the user of this record.requestURI- the request URI of this record.threadDescription- the thread description of this record.thrownStackTrace- the Stack Trace for the associated Throwable of this record.
public record MemoryLogRecord(String category, long millis, Level level, String message, String location, String user, String requestURI, String threadDescription, String thrownStackTrace)
extends Record
Log record for the Memory Appender storage needs.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncategory()Returns the value of thecategoryrecord component.final 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.longmillis()Returns the value of themillisrecord component.Returns the value of therequestURIrecord component.Returns the value of thethreadDescriptionrecord component.Returns the value of thethrownStackTracerecord component.final StringtoString()Returns a string representation of this record class.user()Returns the value of theuserrecord component.
-
Constructor Details
-
MemoryLogRecord
public MemoryLogRecord(String category, long millis, Level level, String message, String location, String user, String requestURI, String threadDescription, String thrownStackTrace) Creates an instance of aMemoryLogRecordrecord class.- Parameters:
category- the value for thecategoryrecord componentmillis- the value for themillisrecord componentlevel- the value for thelevelrecord componentmessage- the value for themessagerecord componentlocation- the value for thelocationrecord componentuser- the value for theuserrecord componentrequestURI- the value for therequestURIrecord componentthreadDescription- the value for thethreadDescriptionrecord componentthrownStackTrace- the value for thethrownStackTracerecord component
-
-
Method Details
-
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
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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with '=='. -
category
Returns the value of thecategoryrecord component.- Returns:
- the value of the
categoryrecord component
-
millis
Returns the value of themillisrecord component.- Returns:
- the value of the
millisrecord component
-
level
Returns the value of thelevelrecord component.- Returns:
- the value of the
levelrecord component
-
message
Returns the value of themessagerecord component.- Returns:
- the value of the
messagerecord component
-
location
Returns the value of thelocationrecord component.- Returns:
- the value of the
locationrecord component
-
user
Returns the value of theuserrecord component.- Returns:
- the value of the
userrecord component
-
requestURI
Returns the value of therequestURIrecord component.- Returns:
- the value of the
requestURIrecord component
-
threadDescription
Returns the value of thethreadDescriptionrecord component.- Returns:
- the value of the
threadDescriptionrecord component
-
thrownStackTrace
Returns the value of thethrownStackTracerecord component.- Returns:
- the value of the
thrownStackTracerecord component
-