LogReceptacle
public final class LogReceptacle
LogReceptacles provide the low-level interface for accepting log messages.
Although you could use a LogReceptacle directly to perform all logging
functions, the Log implementation provides a higher-level interface that’s
more convenient to use within your code.
-
The
LogConfigurationinstances used to construct the receiver.Declaration
Swift
public let configuration: [LogConfiguration] -
The minimum
LogSeverityamongst the receiver’sLogConfigurations.Declaration
Swift
public let minimumSeverity: LogSeverity -
Constructs a new
LogReceptaclethat will use the specified configurations.When a
LogEntryis passed to the receiver’slog()function, logging will proceed using allLogConfigurations having aminimumSeveritythat’s less or as severe as the passed-inLogEntry‘sseverityproperty.If no matching
LogConfigurations are found, then the log request is silently ignored.Declaration
Swift
public init(configuration: [LogConfiguration])Parameters
configurationAn array of
LogConfigurationinstances that specify how the logging system will behave when messages are logged.
View on GitHub
LogReceptacle Class Reference