public final class LoggingOptions extends Object
LoggingFactory. Please refer to the Factory for more information.| Modifier and Type | Field and Description |
|---|---|
static long |
defaultMinDurationToLogSlowRequests
Default logging options.
|
| Constructor and Description |
|---|
LoggingOptions() |
LoggingOptions(long minDurationToLogSlowRequestsInMs)
Creates a new
LoggingOptions object. |
LoggingOptions(long minDurationToLogSlowRequestsInMs,
boolean disableDefaultLogging)
Creates a new
LoggingOptions object. |
| Modifier and Type | Method and Description |
|---|---|
boolean |
disableDefaultLogging() |
long |
minDurationToLogSlowRequestsInMs() |
public static final long defaultMinDurationToLogSlowRequests
MinDurationToLogSlowRequestsInMs is set to 3000;public LoggingOptions()
public LoggingOptions(long minDurationToLogSlowRequestsInMs)
LoggingOptions object.minDurationToLogSlowRequestsInMs - The duration after which a tried operation will be logged as a warning.public LoggingOptions(long minDurationToLogSlowRequestsInMs,
boolean disableDefaultLogging)
LoggingOptions object.minDurationToLogSlowRequestsInMs - The duration after which a tried operation will be logged as a warning.disableDefaultLogging - By default, this library will automatically log warnings and errors to some files in the system's temp
directory. The size of these files is bounded to a few dozen MB and should not impose a burden on the
system. It is strongly recommended to leave these logs enabled for customer support reasons, but if
the user desires a different logging story and enables logging via the HttpPipelineLogger or SLF4J, then
it should be safe to disable default logging.Copyright © 2019 Microsoft Corporation. All rights reserved.