public final class LoggingService extends SimpleDecoratingHttpService
| Modifier and Type | Method and Description |
|---|---|
static LoggingServiceBuilder |
builder()
Returns a newly created
LoggingServiceBuilder. |
static Function<? super HttpService,LoggingService> |
newDecorator()
Returns a new
HttpService decorator that logs HttpRequests and HttpResponses at
LogLevel.INFO for success, LogLevel.WARN for failure. |
HttpResponse |
serve(ServiceRequestContext ctx,
HttpRequest req)
Serves an incoming
Request. |
serviceAdded, shouldCachePathas, delegate, toStringclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitdecorate, decorateas, decorate, serviceAdded, shouldCachePathpublic static Function<? super HttpService,LoggingService> newDecorator()
HttpService decorator that logs HttpRequests and HttpResponses at
LogLevel.INFO for success, LogLevel.WARN for failure.public static LoggingServiceBuilder builder()
LoggingServiceBuilder.public HttpResponse serve(ServiceRequestContext ctx, HttpRequest req) throws Exception
ServiceRequest.Copyright © 2020 LeanCloud. All rights reserved.