diff --git a/Clocker/Overall App/Logger.swift b/Clocker/Overall App/Logger.swift index 4df1d6c..66fa9b8 100644 --- a/Clocker/Overall App/Logger.swift +++ b/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 ?? [:]) + } } }