Package org.restheart.configuration
Record Class Logging
java.lang.Object
java.lang.Record
org.restheart.configuration.Logging
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanReturns the value of theansiConsolerecord component.static Loggingfinal booleanIndicates whether some other object is "equal to" this one.booleanReturns the value of thefullStacktracerecord component.final inthashCode()Returns a hash code value for this object.Returns the value of thelogFilePathrecord component.ch.qos.logback.classic.LevellogLevel()Returns the value of thelogLevelrecord component.booleanReturns the value of thelogToConsolerecord component.booleanReturns the value of thelogToFilerecord component.packages()Returns the value of thepackagesrecord component.intReturns the value of therequestsLogModerecord component.final StringtoString()Returns a string representation of this record class.Returns the value of thetracingHeadersrecord component.
-
Field Details
-
LOGGING_KEY
- See Also:
-
LOG_LEVEL_KEY
- See Also:
-
ENABLE_LOG_FILE_KEY
- See Also:
-
LOG_FILE_PATH_KEY
- See Also:
-
ENABLE_LOG_CONSOLE_KEY
- See Also:
-
ANSI_CONSOLE_KEY
- See Also:
-
REQUESTS_LOG_MODE
- See Also:
-
TRACING_HEADERS_KEY
- See Also:
-
PACKAGES_KEY
- See Also:
-
PRINT_FULL_STACKTRACE
- See Also:
-
-
Constructor Details
-
Logging
-
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 aLoggingrecord class.- Parameters:
logLevel- the value for thelogLevelrecord componentlogToFile- the value for thelogToFilerecord componentlogFilePath- the value for thelogFilePathrecord componentlogToConsole- the value for thelogToConsolerecord componentansiConsole- the value for theansiConsolerecord componentpackages- the value for thepackagesrecord componentfullStacktrace- the value for thefullStacktracerecord componentrequestsLogMode- the value for therequestsLogModerecord componenttracingHeaders- the value for thetracingHeadersrecord component
-
-
Method Details
-
build
-
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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with '=='. -
logLevel
public ch.qos.logback.classic.Level logLevel()Returns the value of thelogLevelrecord component.- Returns:
- the value of the
logLevelrecord component
-
logToFile
public boolean logToFile()Returns the value of thelogToFilerecord component.- Returns:
- the value of the
logToFilerecord component
-
logFilePath
Returns the value of thelogFilePathrecord component.- Returns:
- the value of the
logFilePathrecord component
-
logToConsole
public boolean logToConsole()Returns the value of thelogToConsolerecord component.- Returns:
- the value of the
logToConsolerecord component
-
ansiConsole
public boolean ansiConsole()Returns the value of theansiConsolerecord component.- Returns:
- the value of the
ansiConsolerecord component
-
packages
Returns the value of thepackagesrecord component.- Returns:
- the value of the
packagesrecord component
-
fullStacktrace
public boolean fullStacktrace()Returns the value of thefullStacktracerecord component.- Returns:
- the value of the
fullStacktracerecord component
-
requestsLogMode
public int requestsLogMode()Returns the value of therequestsLogModerecord component.- Returns:
- the value of the
requestsLogModerecord component
-
tracingHeaders
Returns the value of thetracingHeadersrecord component.- Returns:
- the value of the
tracingHeadersrecord component
-