public static class LoggerConfig.Builder extends Object
Constructor and Description |
---|
Builder() |
Modifier and Type | Method and Description |
---|---|
LoggerConfig |
build()
Builds the
LoggerConfig and makes it immutable. |
LoggerConfig.Builder |
consoleLoggerFormatter(LoggerFormatter loggerFormatter)
Deprecated.
Please configure logger output via SLF4J binding instead.
|
LoggerConfig.Builder |
consoleLogLevel(Level consoleLogLevel)
Deprecated.
This method has no effect. SLF4J is used for all logging.
|
LoggerConfig.Builder |
disableSlf4J(boolean disableSlf4J)
Deprecated.
SFL4J is always used for logging.
|
LoggerConfig.Builder |
enableDiagnosticContext(boolean diagnosticContextEnabled)
If enabled, and the user specifies a
clientContext for a request,
the client context is copied into the Mapped Diagnostic Context (MDC)
when events related to that request are logged. |
LoggerConfig.Builder |
fallbackToConsole(boolean fallbackToConsole)
Deprecated.
SLF4J is used for all logging.
|
LoggerConfig.Builder |
loggerName(String loggerName)
Deprecated.
the logging infrastructure picks the logger name automatically now based on the event type
so it is easier to enable/disable logging or change the verbosity level for certain groups rather than having a
single universal logger name.
|
@Deprecated public LoggerConfig.Builder fallbackToConsole(boolean fallbackToConsole)
SLF4J is used for all logging. If you wish to log to the console, please configure your SLF4J binding accordingly.
fallbackToConsole
- ignoredLoggerConfig.Builder
for chaining purposes.@Deprecated public LoggerConfig.Builder disableSlf4J(boolean disableSlf4J)
disableSlf4J
- ignoredLoggerConfig.Builder
for chaining purposes.@Deprecated public LoggerConfig.Builder loggerName(String loggerName)
loggerName
- the custom logger name.LoggerConfig.Builder
for chaining purposes.public LoggerConfig.Builder enableDiagnosticContext(boolean diagnosticContextEnabled)
clientContext
for a request,
the client context is copied into the Mapped Diagnostic Context (MDC)
when events related to that request are logged.
Has no effect if the SLF4J binding does not support MDC.
Disabled by default.
diagnosticContextEnabled
- if the diagnostic context should be enabled.LoggerConfig.Builder
for chaining purposes.@Deprecated public LoggerConfig.Builder consoleLogLevel(Level consoleLogLevel)
consoleLogLevel
- ignoredLoggerConfig.Builder
for chaining purposes.@Deprecated public LoggerConfig.Builder consoleLoggerFormatter(LoggerFormatter loggerFormatter)
If you wish to customize the log output, please configure your SLF4J binding.
loggerFormatter
- ignoredLoggerConfig.Builder
for chaining purposes.public LoggerConfig build()
LoggerConfig
and makes it immutable.Copyright © 2024 Couchbase, Inc.. All rights reserved.