Guest User

Untitled

a guest
Jul 22nd, 2018
93
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.42 KB | None | 0 0
  1. import Willow
  2.  
  3. struct LoggingConfiguration {
  4.  
  5. private static func buildDebugLogger(name: String) -> Logger {
  6.  
  7. // prints straight to the console
  8. let consoleWriter = ConsoleWriter()
  9.  
  10. // create a new logger with all levels which prints synchronously to the console
  11. return Logger(logLevels: [.all], writers: [consoleWriter], executionMethod: .synchronous(lock: NSRecursiveLock()))
  12. }
  13. }
Add Comment
Please, Sign In to add comment