Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import Willow
- struct LoggingConfiguration {
- private static func buildDebugLogger(name: String) -> Logger {
- // prints straight to the console
- let consoleWriter = ConsoleWriter()
- // create a new logger with all levels which prints synchronously to the console
- return Logger(logLevels: [.all], writers: [consoleWriter], executionMethod: .synchronous(lock: NSRecursiveLock()))
- }
- }
Add Comment
Please, Sign In to add comment