LogHandlerConsole

public class LogHandlerConsole : LogHandler

Handler logging to the console.

  • Create log handler.

    Declaration

    Swift

    public init()
  • Create log handler.

    Declaration

    Swift

    public init(logLevel: Logger.Level)
  • Publish log record. Override in subclass to imeplement behavior. Default implementation discards log record.

    Declaration

    Swift

    public func publish(record: Logger.LogRecord)
  • Required log level for records to be published to this handler.

    Declaration

    Swift

    public var logLevel: Logger.Level
  • Date time formatter.

    Declaration

    Swift

    public var dateFormatter: DateFormatter