Logger

public struct Logger
  • Declaration

    Swift

    public let level: LogLevel
  • Declaration

    Swift

    public let name: String
  • Declaration

    Swift

    public init(name: String, level: LogLevel = .shared)
  • Prints to stdout when level is debug

    Declaration

    Swift

    public func debug(_ items: Any...)
  • Prints to stdout when level is info or lower

    Declaration

    Swift

    public func info(_ items: Any...)
  • Prints to stdout when level is warn or lower

    Declaration

    Swift

    public func warn(_ items: Any...)
  • Prints to stdout when level is error or lower

    Declaration

    Swift

    public func error(_ items: Any...)
  • Prints to stdout

    Note

    Should use one of the functions above that are controlled by log level

    Declaration

    Swift

    public func log(_ items: Any...)