Interface AccessLogWriter
- All Known Implementing Classes:
KafkaAccessLogWriter
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
Consumes the
RequestLog
s produced by a Service
, usually for logging purpose.-
Method Summary
Modifier and TypeMethodDescriptiondefault AccessLogWriter
andThen
(AccessLogWriter after) Returns a newAccessLogWriter
which combines twoAccessLogWriter
s.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
Returns an access log writer with the specifiedformatStr
.static AccessLogWriter
disabled()
Returns disabled access log writer.void
log
(RequestLog log) Logs the specifiedRequestLog
.default CompletableFuture
<Void> shutdown()
Shuts down thisAccessLogWriter
.
-
Method Details
-
common
Returns an access log writer with a common format. -
combined
Returns an access log writer with a combined format. -
disabled
Returns disabled access log writer. -
custom
Returns an access log writer with the specifiedformatStr
. -
log
Logs the specifiedRequestLog
. -
andThen
Returns a newAccessLogWriter
which combines twoAccessLogWriter
s. -
shutdown
Shuts down thisAccessLogWriter
.- Returns:
- the
CompletableFuture
which is completed when thisAccessLogWriter
has been shut down.
-