Last active
July 26, 2018 12:40
-
-
Save bill350/767d40d3cecb62e9d9c1c6450ca288b2 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
extension SwiftyBeaver { | |
// ... | |
static func addOSLogDestination() { | |
#if DEBUG | |
let level: SwiftyBeaver.Level = .verbose | |
#else | |
let level: SwiftyBeaver.Level = .error | |
#endif | |
let osLogDestination = OSLogDestination(level: level) | |
logger.addDestination(osLogDestination) | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment