   }
 
   public func output(_ level: TKLog.LogLevel, identifier: String, message: String) {
-    NSLog("\(level.prefix) \(identifier): \(message)")
+    let message = "\(level.prefix) \(identifier): \(message)"
+    os_log("%@", log: OSLog(identifier: identifier), type: level.toOSLog, message)
   }
 }
 

  }
}

// MARK: - Server requests

extension TKLog {


import Foundation

import os.log

/// A `TKLogger` is used by `TKLog` to perform the outputting and processing of log statements.
///
/// A default `TKConsoleLogger` is provided.
