Interface LogElementBuilder

All Superinterfaces:
io.micronaut.core.order.Ordered
All Known Implementing Classes:
BytesSentElementBuilder, CookieElementBuilder, DateTimeElementBuilder, ElapseTimeElementBuilder, HeaderElementBuilder, LocalHostElementBuilder, LocalIpElementBuilder, LocalPortElementBuilder, NotImplementedElementBuilder, RemoteHostElementBuilder, RemoteIpElementBuilder, RequestLineElementBuilder, RequestMethodElementBuilder, RequestProtocolElementBuilder, RequestUriElementBuilder, ResponseCodeElementBuilder

public interface LogElementBuilder extends io.micronaut.core.order.Ordered
Builder for LogElement.
Since:
2.0
  • Field Summary

    Fields inherited from interface io.micronaut.core.order.Ordered

    HIGHEST_PRECEDENCE, LOWEST_PRECEDENCE
  • Method Summary

    Modifier and Type
    Method
    Description
    build(String token, String param)
    Builds the log element for the specified token.

    Methods inherited from interface io.micronaut.core.order.Ordered

    getOrder
  • Method Details

    • build

      LogElement build(String token, String param)
      Builds the log element for the specified token. It should return null it the token is not supported.
      Parameters:
      token - The log element marker.
      param - An optional paramter.
      Returns:
      A LogElement or null if not supported by the builder.