public static class RestCallLoggerConfig.Builder extends Object
RestCallLoggerConfig
objects.Constructor and Description |
---|
Builder() |
Modifier and Type | Method and Description |
---|---|
RestCallLoggerConfig.Builder |
apply(ObjectMap m)
Applies the properties in the specified object map to this builder.
|
RestCallLoggerConfig |
build()
Creates the
RestCallLoggerConfig object based on settings on this builder. |
RestCallLoggerConfig.Builder |
disabled()
Shortcut for calling
|
RestCallLoggerConfig.Builder |
disabled(Enablement value)
Enables no-trace mode on this config.
|
RestCallLoggerConfig.Builder |
level(Level value)
The default logging level.
|
RestCallLoggerConfig.Builder |
parent(RestCallLoggerConfig parent)
Sets the parent logging config.
|
RestCallLoggerConfig.Builder |
rule(RestCallLoggerRule rule)
Adds a new logging rule to this config.
|
RestCallLoggerConfig.Builder |
rules(RestCallLoggerRule... rules)
Adds new logging rules to this config.
|
RestCallLoggerConfig.Builder |
stackTraceHashingTimeout(Integer timeout)
Enables a timeout after which stack traces hashes are flushed.
|
RestCallLoggerConfig.Builder |
useStackTraceHashing()
Shortcut for calling
|
RestCallLoggerConfig.Builder |
useStackTraceHashing(Boolean value)
Enables the use of stacktrace hashing.
|
public Builder()
public RestCallLoggerConfig.Builder parent(RestCallLoggerConfig parent)
parent
- The parent logging config.
public RestCallLoggerConfig.Builder rule(RestCallLoggerRule rule)
The rule will be added to the END of list of current rules and thus checked last in the current list but before any parent rules.
rule
- The logging rule to add to this config.public RestCallLoggerConfig.Builder rules(RestCallLoggerRule... rules)
The rules will be added in order to the END of list of current rules and thus checked last in the current list but before any parent rules.
rules
- The logging rules to add to this config.public RestCallLoggerConfig.Builder disabled(Enablement value)
No-trace mode prevents logging of messages to the log file.
Possible values (case-insensitive):
TRUE
- No-trace mode enabled for all requests.
FALSE
- No-trace mode disabled for all requests.
PER_REQUEST
- No-trace mode enabled for requests that have a value
- The value for this property.
NEVER
).public RestCallLoggerConfig.Builder disabled()
public RestCallLoggerConfig.Builder useStackTraceHashing(Boolean value)
When enabled, stacktraces will be replaced with hashes in the log file.
value
- The value for this property.
public RestCallLoggerConfig.Builder useStackTraceHashing()
public RestCallLoggerConfig.Builder stackTraceHashingTimeout(Integer timeout)
timeout
- Time in milliseconds to hash stack traces for.
MAX_VALUE
).public RestCallLoggerConfig.Builder level(Level value)
This defines the logging level for messages if they're not already defined on the matched rule.
value
- The value for this property.
INFO
).public RestCallLoggerConfig.Builder apply(ObjectMap m)
m
- The map containing properties to apply.public RestCallLoggerConfig build()
RestCallLoggerConfig
object based on settings on this builder.RestCallLoggerConfig
object.Copyright © 2016–2020 The Apache Software Foundation. All rights reserved.