@Repeatable(value=LoggingDecorators.class) @Retention(value=RUNTIME) @Target(value={TYPE,METHOD}) public @interface LoggingDecorator
LoggingService decorator for annotated HTTP services.| Modifier and Type | Optional Element and Description |
|---|---|
LogLevel |
failureResponseLogLevel
The
LogLevel to use when logging failure responses (e.g., failed with an exception). |
int |
order
The order of decoration, where a
Decorator of lower value will be applied first. |
LogLevel |
requestLogLevel
The
LogLevel to use when logging requests. |
float |
samplingRate
The rate at which to sample requests to log.
|
LogLevel |
successfulResponseLogLevel
The
LogLevel to use when logging successful responses (e.g., no unhandled exception). |
public abstract LogLevel requestLogLevel
LogLevel to use when logging requests. If unset, will use LogLevel.TRACE.public abstract LogLevel successfulResponseLogLevel
LogLevel to use when logging successful responses (e.g., no unhandled exception).
If unset, will use LogLevel.TRACE.public abstract LogLevel failureResponseLogLevel
LogLevel to use when logging failure responses (e.g., failed with an exception).
If unset, will use LogLevel.WARN.public abstract float samplingRate
0.0 and 1.0 will
cause a random sample of the requests to be logged. The random sampling is appropriate for low-traffic
(ex servers that each receive <100K requests). If unset, all requests will be logged.public abstract int order
Decorator of lower value will be applied first.Copyright © 2020 LeanCloud. All rights reserved.