Minimum

public enum Minimum : Int, Comparable
extension LogLevel.Minimum: DataInputConvertible

The minimum log level that will be used by a logger to limit the amount of logs produced.

It includes the same log levels as the LogLevel plus an additional silent level to stop all logging.

  • Allow all trace-level and above messages.

    Declaration

    Swift

    case trace = 0
  • Allow debug-level and above messages.

    Declaration

    Swift

    case debug = 100
  • Allow info-level and above messages.

    Declaration

    Swift

    case info = 200
  • Allow warning-level and above messages.

    Declaration

    Swift

    case warn = 300
  • Allow only error-level messages.

    Declaration

    Swift

    case error = 400
  • Disable all logging.

    Declaration

    Swift

    case silent = 999999
  • Creates a minimum log level from a string representation.

    Declaration

    Swift

    public init?(from string: String?)

    Parameters

    string

    The string representation of the log level.

  • Returns the string representation of this minimum log level.

    Declaration

    Swift

    public func toString() -> String

    Return Value

    The string representation.

  • Declaration

    Swift

    public static func < (lhs: `Self`, rhs: `Self`) -> Bool
  • Declaration

    Swift

    public func toDataInput() -> any DataInput