onRequestEvent method

FutureOr<LogRequest?> onRequestEvent(
  1. LogRequest request
)

The onRequestEvent is called before running any printers. The request, event and log can be manipulated in the request just return the new value.

If the interceptor is async the logger will wait for it to complete or fail before proceeding.

Return null if the log should not be processed further

Implementation

FutureOr<LogRequest?> onRequestEvent(LogRequest request) => request;