Interface LogRouter.Router

All Superinterfaces:
AutoCloseable, LogEventLogger, LogLifecycle, LogRouter
All Known Implementing Classes:
LogRouter.AbstractRouter
Enclosing interface:
LogRouter

public static sealed interface LogRouter.Router extends LogRouter, LogEventLogger permits LogRouter.AbstractRouter (not exhaustive)
Router routes messages to a publisher.
  • Field Details

  • Method Details

    • levelResolver

      Level resolver.
      Returns:
      level resolver.
    • publisher

      Log publisher.
      Returns:
      publisher.
    • synchronous

      default boolean synchronous()
      Whether or not the publisher is synchronous. A synchronous publisher generally blocks.
      Returns:
      true if the publisher is synchronous.
    • log

      default void log(LogEvent event)
      Description copied from interface: LogEventLogger
      Logs events usually without filtering. There is no guarantee this call will check if the event should be filtered (threshold is too low) and in general does not on purpose!
      Specified by:
      log in interface LogEventLogger
      Parameters:
      event - event.
    • builder

      Creates a builder from config.
      Parameters:
      name - name of the route which the publisher will inherit.
      config - config.
      Returns:
      builder.