LogReceptacle
public final class LogReceptacle
LogReceptacle
s 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
LogConfiguration
instances used to construct the receiver.Declaration
Swift
public let configuration: [LogConfiguration]
-
The minimum
LogSeverity
amongst the receiver’sLogConfiguration
s.Declaration
Swift
public let minimumSeverity: LogSeverity
-
Constructs a new
LogReceptacle
that will use the specified configurations.When a
LogEntry
is passed to the receiver’slog()
function, logging will proceed using allLogConfiguration
s having aminimumSeverity
that’s less or as severe as the passed-inLogEntry
‘sseverity
property.If no matching
LogConfiguration
s are found, then the log request is silently ignored.Declaration
Swift
public init(configuration: [LogConfiguration])
Parameters
configuration
An array of
LogConfiguration
instances that specify how the logging system will behave when messages are logged.