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 Type
    Method
    Description
    void
    logMessage(String message)
     
    default void
    logMessage(String message, io.vertx.ext.web.RoutingContext exchange)
    Log a message with the originating RoutingContext so that implementations can extract structured fields (method, URI, status code, etc.) from the exchange and attach them to the log record.
  • Method Details

    • logMessage

      void logMessage(String message)
    • logMessage

      default void logMessage(String message, io.vertx.ext.web.RoutingContext exchange)
      Log a message with the originating RoutingContext so 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 line
      exchange - the Vert.x routing context for the completed request