DefaultLoggerDestination

public final class DefaultLoggerDestination : LoggerDestination

The default logger implementation.

  • The property that defines.

    Declaration

    Swift

    public var logLevel: LogLevel
  • Initializes the destination.

    Declaration

    Swift

    public init()
  • The log message if logLevel is more strict than the passed level.

    Declaration

    Swift

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

    Parameters

    module

    The module name.

    level

    The log message level. See LogLevel for the available log levels.

    message

    The message to be logged.

  • The log error if logLevel is more strict than the passed level.

    Declaration

    Swift

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

    Parameters

    module

    The module name.

    level

    The log message level. See LogLevel for the available log levels.

    message

    The message to be logged.