Record Class MemoryLogRecord

java.lang.Object
java.lang.Record
org.ametys.runtime.log.MemoryLogRecord
Record Components:
category - the category of this record
millis - 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 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 a MemoryLogRecord record class.
      Parameters:
      category - the value for the category record component
      millis - the value for the millis record component
      level - the value for the level record component
      message - the value for the message record component
      location - the value for the location record component
      user - the value for the user record component
      requestURI - the value for the requestURI record component
      threadDescription - the value for the threadDescription record component
      thrownStackTrace - the value for the thrownStackTrace record component
  • Method Details

    • toString

      public final String 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.
      Specified by:
      toString in class Record
      Returns:
      a string representation of this object
    • 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.
      Specified by:
      hashCode in class Record
      Returns:
      a hash code value for this object
    • equals

      public final boolean equals(Object o)
      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 with Objects::equals(Object,Object); primitive components are compared with '=='.
      Specified by:
      equals in class Record
      Parameters:
      o - the object with which to compare
      Returns:
      true if this object is the same as the o argument; false otherwise.
    • category

      public String category()
      Returns the value of the category record component.
      Returns:
      the value of the category record component
    • millis

      public long millis()
      Returns the value of the millis record component.
      Returns:
      the value of the millis record component
    • level

      public Level level()
      Returns the value of the level record component.
      Returns:
      the value of the level record component
    • message

      public String message()
      Returns the value of the message record component.
      Returns:
      the value of the message record component
    • location

      public String location()
      Returns the value of the location record component.
      Returns:
      the value of the location record component
    • user

      public String user()
      Returns the value of the user record component.
      Returns:
      the value of the user record component
    • requestURI

      public String requestURI()
      Returns the value of the requestURI record component.
      Returns:
      the value of the requestURI record component
    • threadDescription

      Returns the value of the threadDescription record component.
      Returns:
      the value of the threadDescription record component
    • thrownStackTrace

      Returns the value of the thrownStackTrace record component.
      Returns:
      the value of the thrownStackTrace record component