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
-
Method Summary
Modifier and TypeMethodDescriptioncategory()
Returns the value of thecategory
record component.final boolean
Indicates whether some other object is "equal to" this one.final int
hashCode()
Returns a hash code value for this object.level()
Returns the value of thelevel
record component.location()
Returns the value of thelocation
record component.message()
Returns the value of themessage
record component.long
millis()
Returns the value of themillis
record component.Returns the value of therequestURI
record component.Returns the value of thethreadDescription
record component.Returns the value of thethrownStackTrace
record component.final String
toString()
Returns a string representation of this record class.user()
Returns the value of theuser
record 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 aMemoryLogRecord
record class.- Parameters:
category
- the value for thecategory
record componentmillis
- the value for themillis
record componentlevel
- the value for thelevel
record componentmessage
- the value for themessage
record componentlocation
- the value for thelocation
record componentuser
- the value for theuser
record componentrequestURI
- the value for therequestURI
record componentthreadDescription
- the value for thethreadDescription
record componentthrownStackTrace
- the value for thethrownStackTrace
record 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 thecategory
record component.- Returns:
- the value of the
category
record component
-
millis
Returns the value of themillis
record component.- Returns:
- the value of the
millis
record component
-
level
Returns the value of thelevel
record component.- Returns:
- the value of the
level
record component
-
message
Returns the value of themessage
record component.- Returns:
- the value of the
message
record component
-
location
Returns the value of thelocation
record component.- Returns:
- the value of the
location
record component
-
user
Returns the value of theuser
record component.- Returns:
- the value of the
user
record component
-
requestURI
Returns the value of therequestURI
record component.- Returns:
- the value of the
requestURI
record component
-
threadDescription
Returns the value of thethreadDescription
record component.- Returns:
- the value of the
threadDescription
record component
-
thrownStackTrace
Returns the value of thethrownStackTrace
record component.- Returns:
- the value of the
thrownStackTrace
record component
-