Interface LogRecordDispatcher

All Known Implementing Classes:
ThreadedLogRecordDispatcher
Functional Interface:
This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

@FunctionalInterface public interface LogRecordDispatcher
Represents a dispatcher for log records. This dispatcher is meant to pre-process log records if needed and then post them to all registered dispatchers of a logger, for example from an asynchronous context.
Since:
4.0
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    Called when a log record needs to be dispatched for a logger.
  • Method Details

    • dispatchRecord

      void dispatchRecord(@NonNull @NonNull Logger logger, @NonNull @NonNull LogRecord record)
      Called when a log record needs to be dispatched for a logger.
      Parameters:
      logger - the logger from which the log event came.
      record - the record which needs to be dispatched.
      Throws:
      NullPointerException - if either the given logger or record is null.