From 173f567a2dfec11d74588eea82cecea555bdc0bc Mon Sep 17 00:00:00 2001 From: Adam Fowler Date: Tue, 7 Jul 2020 17:59:46 +0100 Subject: [PATCH] Make SwiftLogNoOpLogHandler.init() public --- Sources/Logging/Logging.swift | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Sources/Logging/Logging.swift b/Sources/Logging/Logging.swift index bb8364b3..434eb927 100644 --- a/Sources/Logging/Logging.swift +++ b/Sources/Logging/Logging.swift @@ -733,6 +733,8 @@ public struct StreamLogHandler: LogHandler { /// No operation LogHandler, used when no logging is required public struct SwiftLogNoOpLogHandler: LogHandler { + public init() {} + @inlinable public func log(level: Logger.Level, message: Logger.Message, metadata: Logger.Metadata?, file: String, function: String, line: UInt) {} @inlinable public subscript(metadataKey _: String) -> Logger.Metadata.Value? {