Skip to content

Commit

Permalink
Merge pull request #10 from mRs-/master
Browse files Browse the repository at this point in the history
Xcode 12 Support
  • Loading branch information
chrisaljoudi authored Jul 29, 2020
2 parents 82e9145 + 261853c commit 176d41d
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions Sources/LoggingOSLog/LoggingOSLog.swift
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import Foundation
import Logging
import struct Logging.Logger
import os

public struct LoggingOSLog: LogHandler {
Expand All @@ -26,9 +27,7 @@ public struct LoggingOSLog: LogHandler {
if combinedPrettyMetadata != nil {
formedMessage += " -- " + combinedPrettyMetadata!
}
if let str = formedMessage as? NSString {
os_log("%{public}@", log: self.oslogger, type: OSLogType.from(loggerLevel: level), str)
}
os_log("%{public}@", log: self.oslogger, type: OSLogType.from(loggerLevel: level), formedMessage as NSString)
}

private var prettyMetadata: String?
Expand Down

0 comments on commit 176d41d

Please sign in to comment.