LoggerDestination

public protocol LoggerDestination

The protocol that passes the logger message to the logging system.

See LoggerFactory to set up a custom implementation.

  • The log message.

    Declaration

    Swift

    func log(module: LoggerModule, level: LogLevel, message: @autoclosure () -> String)

    Parameters

    module

    The module this message originates from.

    level

    The message log level.

    message

    The message to be logged.

  • The log error.

    Declaration

    Swift

    func log(module: LoggerModule, level: LogLevel, error: @autoclosure () -> Error)

    Parameters

    module

    The module this message originates from.

    level

    The message log level.

    error

    The error to be logged.