LogConfiguration
public protocol LogConfiguration
Defines an interface for specifying the configuration of the logging system.
-
The minimum
LogSeveritysupported by the configuration.Declaration
Swift
var minimumSeverity: LogSeverity -
The
LogFilters to use when deciding whether a givenLogEntryshould be passed along to the receiver’srecorders. If any filter returnsfalsefromshouldRecordLogEntry(_:), theLogEntrywill be silently ignored when being processed for thisLogConfiguration.Declaration
Swift
var filters: [LogFilter] -
The
LogRecorders to use for recording anyLogEntrythat has passed the filtering process.Declaration
Swift
var recorders: [LogRecorder] -
A flag indicating whether synchronous mode will be used when passing
LogEntryinstances to the receiver’srecorders. Synchronous mode is helpful while debugging, as it ensures that logs are always up-to-date when debug breakpoints are hit. However, synchronous mode can have a negative influence on performance and is therefore not recommended for use in production code.Declaration
Swift
var synchronousMode: Bool -
configurationsDefault implementationFor organizational purposes, a given
LogConfigurationmay in turn contain one or more additionalLogConfigurations. Each containedLogConfigurationis an entirely separate entity; children do not inherit any state from parent containers.Default Implementation
A default implementation returning
nil, indicating that the receiver contains noLogConfigurations.Declaration
Swift
var configurations: [LogConfiguration]?
View on GitHub
LogConfiguration Protocol Reference