Interface AccessLogReceiver
- All Known Implementing Classes:
DefaultAccessLogReceiver,JBossLoggingAccessLogReceiver
public interface AccessLogReceiver
Interface that is used by the access log handler to send data to the log file manager.
Implementations of this interface must be thread safe.
- Author:
- Stuart Douglas
-
Method Summary
Modifier and TypeMethodDescriptionvoidlogMessage(String message) default voidlogMessage(String message, io.vertx.ext.web.RoutingContext exchange) Log a message with the originatingRoutingContextso that implementations can extract structured fields (method, URI, status code, etc.) from the exchange and attach them to the log record.
-
Method Details
-
logMessage
-
logMessage
Log a message with the originatingRoutingContextso that implementations can extract structured fields (method, URI, status code, etc.) from the exchange and attach them to the log record.Implementations that do not need structured access to the exchange may rely on the default implementation which simply delegates to
logMessage(String).- Parameters:
message- the pre-formatted access log lineexchange- the Vert.x routing context for the completed request
-