Record Class Logging

java.lang.Object
java.lang.Record
org.restheart.configuration.Logging

public record Logging(ch.qos.logback.classic.Level logLevel, boolean logToFile, String logFilePath, boolean logToConsole, boolean ansiConsole, List<String> packages, boolean fullStacktrace, int requestsLogMode, List<String> tracingHeaders) extends Record
  • Field Details

  • Constructor Details

    • Logging

      public Logging(Map<String,Object> conf, boolean silent)
    • Logging

      public Logging(ch.qos.logback.classic.Level logLevel, boolean logToFile, String logFilePath, boolean logToConsole, boolean ansiConsole, List<String> packages, boolean fullStacktrace, int requestsLogMode, List<String> tracingHeaders)
      Creates an instance of a Logging record class.
      Parameters:
      logLevel - the value for the logLevel record component
      logToFile - the value for the logToFile record component
      logFilePath - the value for the logFilePath record component
      logToConsole - the value for the logToConsole record component
      ansiConsole - the value for the ansiConsole record component
      packages - the value for the packages record component
      fullStacktrace - the value for the fullStacktrace record component
      requestsLogMode - the value for the requestsLogMode record component
      tracingHeaders - the value for the tracingHeaders record component
  • Method Details

    • build

      public static Logging build(Map<String,Object> conf, boolean silent)
    • 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.
    • logLevel

      public ch.qos.logback.classic.Level logLevel()
      Returns the value of the logLevel record component.
      Returns:
      the value of the logLevel record component
    • logToFile

      public boolean logToFile()
      Returns the value of the logToFile record component.
      Returns:
      the value of the logToFile record component
    • logFilePath

      public String logFilePath()
      Returns the value of the logFilePath record component.
      Returns:
      the value of the logFilePath record component
    • logToConsole

      public boolean logToConsole()
      Returns the value of the logToConsole record component.
      Returns:
      the value of the logToConsole record component
    • ansiConsole

      public boolean ansiConsole()
      Returns the value of the ansiConsole record component.
      Returns:
      the value of the ansiConsole record component
    • packages

      public List<String> packages()
      Returns the value of the packages record component.
      Returns:
      the value of the packages record component
    • fullStacktrace

      public boolean fullStacktrace()
      Returns the value of the fullStacktrace record component.
      Returns:
      the value of the fullStacktrace record component
    • requestsLogMode

      public int requestsLogMode()
      Returns the value of the requestsLogMode record component.
      Returns:
      the value of the requestsLogMode record component
    • tracingHeaders

      public List<String> tracingHeaders()
      Returns the value of the tracingHeaders record component.
      Returns:
      the value of the tracingHeaders record component