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
class Logger: NSObject {
class func log(object _: [String: Any]?, for _: NSString) {
// TODO: Use a new analytics solution!
class func log(object annotations: [String: Any]?, for event: NSString) {
if #available(OSX 10.14, *) {
os_log(.info, "[%@] - [%@]", event, annotations ?? [:])
}
}
}

Loading…
Cancel
Save