LoggerFilter

typealias LoggerFilter = (logger: Logger, msg: Message) -> LoggerLogLevel

The prototype for a logging filter.

The filter callback will be invoked for each request or response, and should analyze it and return a enum@LoggerLogLevel value indicating how much of the message to log.

  • param logger the #SoupLogger

  • param msg the message being logged

  • return a enum@LoggerLogLevel value indicating how much of the message to log