Update Logging.swift

This commit is contained in:
Konrad `ktoso` Malawski authored and GitHub committed 2022-10-25 18:04:11 +09:00
1 parent 4c9b50fa60
commit 7bdda417df
1 file changed
+4 -2
+4 -2
View File
@@ -42,8 +42,10 @@ public struct Logger {
@usableFromInline
var handler: LogHandler
@usableFromInline
var metadataProvider: MetadataProvider?
/// Metadata provider which will be used to convert contextual ``Baggage`` to ``Logger.Metadata`` when a log message is to be emitted.
/// The provider configured on the ``LoggingSystem`` level will be passed to a `Logger` on initialization, however it is possible to replace
/// the provider on specific instances, in case they should treat contextual baggage information in some other way (e.g. ignore it).
public var metadataProvider: MetadataProvider?
/// An identifier of the creator of this `Logger`.
public let label: String