Skip to content

Commit

Permalink
Make SwiftLogNoOpLogHandler.init() public
Browse files Browse the repository at this point in the history
  • Loading branch information
adam-fowler authored and ktoso committed Jul 8, 2020
1 parent 57c6bd0 commit 173f567
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Sources/Logging/Logging.swift
Original file line number Diff line number Diff line change
Expand Up @@ -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? {
Expand Down

0 comments on commit 173f567

Please sign in to comment.