Class LoggingService
java.lang.Object
com.linecorp.armeria.common.util.AbstractUnwrappable<Service<HttpRequest,HttpResponse>>
com.linecorp.armeria.server.DecoratingService<HttpRequest,HttpResponse,HttpRequest,HttpResponse>
com.linecorp.armeria.server.SimpleDecoratingService<HttpRequest,HttpResponse>
com.linecorp.armeria.server.SimpleDecoratingHttpService
com.linecorp.armeria.server.logging.LoggingService
- All Implemented Interfaces:
Unwrappable
,HttpService
,Service<HttpRequest,
HttpResponse>
-
Method Summary
Modifier and TypeMethodDescriptionstatic LoggingServiceBuilder
builder()
Returns a newly createdLoggingServiceBuilder
.static Function
<? super HttpService, LoggingService> Returns a newHttpService
decorator that logsHttpRequest
s andHttpResponse
s atLogLevel.DEBUG
for success,LogLevel.WARN
for failure.serve
(ServiceRequestContext ctx, HttpRequest req) Serves an incomingRequest
.Methods inherited from class com.linecorp.armeria.server.SimpleDecoratingHttpService
exchangeType, options
Methods inherited from class com.linecorp.armeria.server.DecoratingService
serviceAdded, shouldCachePath
Methods inherited from class com.linecorp.armeria.common.util.AbstractUnwrappable
as, toString, unwrap, unwrapAll
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface com.linecorp.armeria.server.HttpService
decorate, decorate
Methods inherited from interface com.linecorp.armeria.server.Service
as, serviceAdded, shouldCachePath, unwrap
Methods inherited from interface com.linecorp.armeria.common.util.Unwrappable
equalsIgnoreWrapper, unwrapAll
-
Method Details
-
newDecorator
Returns a newHttpService
decorator that logsHttpRequest
s andHttpResponse
s atLogLevel.DEBUG
for success,LogLevel.WARN
for failure. SeeLoggingServiceBuilder
for more information on the default settings. -
builder
Returns a newly createdLoggingServiceBuilder
. -
serve
Description copied from interface:Service
Serves an incomingRequest
.
-