@FunctionalInterface public interface AccessLogWriter
RequestLogs produced by a Service, usually for logging purpose.| Modifier and Type | Method and Description |
|---|---|
default AccessLogWriter |
andThen(AccessLogWriter after)
Returns a new
AccessLogWriter which combines two AccessLogWriters. |
static AccessLogWriter |
combined()
Returns an access log writer with a combined format.
|
static AccessLogWriter |
common()
Returns an access log writer with a common format.
|
static AccessLogWriter |
custom(String formatStr)
Returns an access log writer with the specified
formatStr. |
static AccessLogWriter |
disabled()
Returns disabled access log writer.
|
void |
log(RequestLog log)
Logs the specified
RequestLog. |
default CompletableFuture<Void> |
shutdown()
Shuts down this
AccessLogWriter. |
static AccessLogWriter common()
static AccessLogWriter combined()
static AccessLogWriter disabled()
static AccessLogWriter custom(String formatStr)
formatStr.void log(RequestLog log)
RequestLog.default AccessLogWriter andThen(AccessLogWriter after)
AccessLogWriter which combines two AccessLogWriters.default CompletableFuture<Void> shutdown()
AccessLogWriter.CompletableFuture which is completed
when this AccessLogWriter has been shut down.Copyright © 2020 LeanCloud. All rights reserved.