Logger template for iOS12+

Updated
Oct 20, 2021 5:14 AM
Created
Oct 20, 2021 5:13 AM
Tags
Swift

enum Log {

    private static let log = OSLog.init(subsystem: <#subsystem#>, category: <#category#>)

    static func debug(_ object: Any...) {
      os_log(.debug, log: log, "%@", object.map { "\($0)" }.joined(separator: " "))
    }

  }