DefaultLogger

public struct DefaultLogger : Logger

Default Logger implementation

Properties

Methods

  • Constructor.

    Declaration

    Swift

    public init(_ logLevel: LogLevel = .warnings,
                osLog: OSLog = OSLog.default)

    Parameters

    logLevel

    DefaultLoggerLevel. Defaulted to warnings.

    osLog

    OSLog instance of the app.

  • Declaration

    Swift

    public func log(_ message: LogMessage)
  • Log level settings

    • verbose: Log all the messages from a Router
    • warnings: Log only warnings and errors
    • errors: Log only errors
    See more

    Declaration

    Swift

    enum LogLevel : CaseIterable