LogHandler

public protocol LogHandler

Log handler protocol.

  • Required log level for records to be published to this handler.

    Declaration

    Swift

    var logLevel: Logger.Level { get set }
  • isLoggable(level:) Default implementation

    Logger acceps log level.

    Default Implementation

    Logger acceps log level.

    Declaration

    Swift

    func isLoggable(level: Logger.Level) -> Bool
  • Publish log record. Override in subclass to imeplement behavior. Default implementation discards log record.

    Declaration

    Swift

    func publish(record: Logger.LogRecord)