Browse Source

Using os_log for console logs.

pull/92/head
Abhishek 4 years ago
parent
commit
d9a8c902f4
  1. 6
      Clocker/Overall App/Logger.swift

6
Clocker/Overall App/Logger.swift

@ -5,8 +5,10 @@ import os.log
import os.signpost import os.signpost
class Logger: NSObject { class Logger: NSObject {
class func log(object _: [String: Any]?, for _: NSString) { class func log(object annotations: [String: Any]?, for event: NSString) {
// TODO: Use a new analytics solution! if #available(OSX 10.14, *) {
os_log(.info, "[%@] - [%@]", event, annotations ?? [:])
}
} }
} }

Loading…
Cancel
Save