|
|
@ -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 ?? [:]) |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|