LogFilter

public protocol LogFilter

Before a LogEntry is recorded, any LogFilters specified in the active LogConfiguration are given a chance to prevent the entry from being recorded by returning false from the shouldRecord(entry:) function.

  • Called to determine whether the given LogEntry should be recorded.

    Declaration

    Swift

    func shouldRecord(entry: LogEntry)

    Parameters

    entry

    The LogEntry to be evaluated by the filter.

    Return Value

    true if entry should be recorded, false if not.