Protocols

The following protocols are available globally.

  • 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.

    See more

    Declaration

    Swift

    public protocol LogFilter
  • Defines an interface for specifying the configuration of the logging system.

    See more

    Declaration

    Swift

    public protocol LogConfiguration
  • LogFormatters are used to attempt to create string representations of LogEntry instances.

    See more

    Declaration

    Swift

    public protocol LogFormatter
  • Each LogRecorder instance is responsible recording formatted log messages (along with their accompanying LogEntry instances) to an underlying log facility or data store.

    See more

    Declaration

    Swift

    public protocol LogRecorder