Custom LogHandler for https://github.com/apple/swift-log
- Swift 63.3%
- Shell 36.7%
Example usage:
import CBLogging
var Log: Logger { CBLogHandler.appLogger }
#if DEBUG
CBLogHandler.bootstrap(defaultLogLevel: .info, appLogLevel: .debug)
#else
CBLogHandler.bootstrap(defaultLogLevel: .notice, appLogLevel: .info)
#endif