Print logged messages to Console.

This commit is contained in:
Brent Simmons 2017-11-25 16:15:17 -08:00
parent ba638ecda1
commit d373662484
1 changed files with 4 additions and 4 deletions

View File

@ -66,16 +66,16 @@ class AppDelegate: NSObject, NSApplicationDelegate, NSUserInterfaceValidations,
func logMessage(_ message: String, type: LogItem.ItemType) {
#if DEBUG
print("logMessage: \(message) - \(type)")
#endif
let logItem = LogItem(type: type, message: message)
log.add(logItem)
}
func logDebugMessage(_ message: String) {
#if DEBUG
print("logDebugMessage: \(message)")
#endif
logMessage(message, type: .debug)
}