Logboard

public class Logboard

The Logboard class is writing string messages to the LogboardAppender.

  • The default dateFormatter values that is yyyy-dd-MM HH:mm:ss.SSS.

    Declaration

    Swift

    public static var dateFormatter: DateFormatter
  • The logging level.

    See more

    Declaration

    Swift

    public enum Level : Int, CustomStringConvertible
  • Create or get a Logboard instance.

    Declaration

    Swift

    public static func with(_ identifier: String) -> Logboard
  • The identifier is the subsystem name.

    Declaration

    Swift

    public let identifier: String
  • Specifies the logging level.

    Declaration

    Swift

    public var level: Logboard.Level
  • Specifies logging appenders.

    Declaration

    Swift

    public var appender: LogboardAppender
  • Create a logger with the identifier.

    Declaration

    Swift

    public init(_ identifier: String)
  • Is logging enabled for the supplied level or not.

    Declaration

    Swift

    public func isEnabledFor(level: Logboard.Level) -> Bool
  • Writes a trace message to the appender.

    Declaration

    Swift

    public func trace(_ message: Any..., file: StaticString = #file, function: StaticString = #function, line: Int = #line)
  • Writes a trace message to the appender with a format string.

    Declaration

    Swift

    public func trace(format: String, arguments: CVarArg, file: StaticString = #file, function: StaticString = #function, line: Int = #line)
  • Writes a debug message to the appender.

    Declaration

    Swift

    public func debug(_ message: Any..., file: StaticString = #file, function: StaticString = #function, line: Int = #line)
  • Writes a debug message to the appender with a format string.

    Declaration

    Swift

    public func debug(format: String, arguments: CVarArg, file: StaticString = #file, function: StaticString = #function, line: Int = #line)
  • Writes a informative message to the appender.

    Declaration

    Swift

    public func info(_ message: Any..., file: StaticString = #file, function: StaticString = #function, line: Int = #line)
  • Writes a informative message to the appender with a format string.

    Declaration

    Swift

    public func info(format: String, arguments: CVarArg, file: StaticString = #file, function: StaticString = #function, line: Int = #line)
  • Writes a warning message to the appender.

    Declaration

    Swift

    public func warn(_ message: Any..., file: StaticString = #file, function: StaticString = #function, line: Int = #line)
  • Writes a warning message to the appender with a format string.

    Declaration

    Swift

    public func warn(format: String, arguments: CVarArg, file: StaticString = #file, function: StaticString = #function, line: Int = #line)
  • Writes a error message to the appender.

    Declaration

    Swift

    public func error(_ message: Any..., file: StaticString = #file, function: StaticString = #function, line: Int = #line)
  • Writes a error message to the appender with a format string.

    Declaration

    Swift

    public func error(format: String, arguments: CVarArg, file: StaticString = #file, function: StaticString = #function, line: Int = #line)
  • The logging message model.

    See more

    Declaration

    Swift

    public struct Data
    extension Logboard.Data: CustomStringConvertible