public struct LogSeverityFilter: LogFilter
Initializes a new
public init(severity: LogSeverity)
LogSeveritythat the filter will use to determine whether a given
LogEntryshould be recorded. Only those log entries with a severity equal to or more severe than this value will pass through the filter.
Called to determine whether the given
LogEntryshould be recorded.
public func shouldRecord(entry: LogEntry) -> Bool
LogEntryto be evaluated by the filter.
entry.severityis as or more severe than the receiver’s