| Package | Description |
|---|---|
| com.linecorp.armeria.client.logging |
Logging client decorators.
|
| com.linecorp.armeria.common.logging | |
| com.linecorp.armeria.server.logging |
Logging and metric-collecting service decorators.
|
| Modifier and Type | Class and Description |
|---|---|
class |
LoggingClientBuilder
Builds a new
LoggingClient. |
class |
LoggingRpcClientBuilder
Builds a new
LoggingRpcClient. |
| Modifier and Type | Method and Description |
|---|---|
LoggingDecoratorBuilder |
LoggingDecoratorBuilder.contentSanitizer(Function<Object,?> contentSanitizer)
Sets the
Function to use to sanitize request and response content before logging. |
LoggingDecoratorBuilder |
LoggingDecoratorBuilder.failureResponseLogLevel(LogLevel failedResponseLogLevel)
Sets the
LogLevel to use when logging failure responses (e.g., failed with an exception). |
LoggingDecoratorBuilder |
LoggingDecoratorBuilder.headersSanitizer(Function<? super HttpHeaders,?> headersSanitizer)
Sets the
Function to use to sanitize request, response and trailers before logging. |
LoggingDecoratorBuilder |
LoggingDecoratorBuilder.logger(org.slf4j.Logger logger)
Sets the
Logger to use when logging. |
LoggingDecoratorBuilder |
LoggingDecoratorBuilder.requestContentSanitizer(Function<Object,?> requestContentSanitizer)
Sets the
Function to use to sanitize request content before logging. |
LoggingDecoratorBuilder |
LoggingDecoratorBuilder.requestHeadersSanitizer(Function<? super HttpHeaders,?> requestHeadersSanitizer)
Sets the
Function to use to sanitize request headers before logging. |
LoggingDecoratorBuilder |
LoggingDecoratorBuilder.requestLogLevel(LogLevel requestLogLevel)
Sets the
LogLevel to use when logging requests. |
LoggingDecoratorBuilder |
LoggingDecoratorBuilder.requestLogLevelMapper(Function<? super RequestOnlyLog,LogLevel> requestLogLevelMapper)
Sets the
Function to use when mapping the log level of request logs. |
LoggingDecoratorBuilder |
LoggingDecoratorBuilder.requestTrailersSanitizer(Function<? super HttpHeaders,?> requestTrailersSanitizer)
Sets the
Function to use to sanitize request trailers before logging. |
LoggingDecoratorBuilder |
LoggingDecoratorBuilder.responseCauseSanitizer(Function<? super Throwable,?> responseCauseSanitizer)
Sets the
Function to use to sanitize a response cause before logging. |
LoggingDecoratorBuilder |
LoggingDecoratorBuilder.responseContentSanitizer(Function<Object,?> responseContentSanitizer)
Sets the
Function to use to sanitize response content before logging. |
LoggingDecoratorBuilder |
LoggingDecoratorBuilder.responseHeadersSanitizer(Function<? super HttpHeaders,?> responseHeadersSanitizer)
Sets the
Function to use to sanitize response headers before logging. |
LoggingDecoratorBuilder |
LoggingDecoratorBuilder.responseLogLevelMapper(Function<? super RequestLog,LogLevel> responseLogLevelMapper)
Sets the
Function to use when mapping the log level of response logs. |
LoggingDecoratorBuilder |
LoggingDecoratorBuilder.responseTrailersSanitizer(Function<? super HttpHeaders,?> responseTrailersSanitizer)
Sets the
Function to use to sanitize response trailers before logging. |
LoggingDecoratorBuilder |
LoggingDecoratorBuilder.successfulResponseLogLevel(LogLevel successfulResponseLogLevel)
Sets the
LogLevel to use when logging successful responses (e.g., no unhandled exception). |
| Modifier and Type | Class and Description |
|---|---|
class |
LoggingServiceBuilder
Builds a new
LoggingService. |
Copyright © 2020 LeanCloud. All rights reserved.