Permalink
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
25 lines (18 sloc) 517 Bytes
//
// ConsoleLogger.swift
// SYNQueueDemo
//
import Foundation
import SYNQueue
func log(level: LogLevel, _ msg: String) {
return ConsoleLogger.log(level, msg)
}
class ConsoleLogger : SYNQueueLogProvider {
// MARK: - SYNQueueLogProvider Delegates
@objc func log(level: LogLevel, _ msg: String) {
return ConsoleLogger.log(level, msg)
}
class func log(level: LogLevel, _ msg: String) {
runOnMainThread { print("[\(level.toString().uppercaseString)] \(msg)") }
}
}