Global log level for CocoaLumberjack

后端 未结 12 972
[愿得一人]
[愿得一人] 2020-12-23 20:19

I\'m using CocoaLumberjack in an iPhone project, to log some information.

I\'ve followed the Getting started guide, and everything works fine, but there is one thing

12条回答
  •  失恋的感觉
    2020-12-23 20:55

    For those using CocoaLumberjackSwift you can simply set the following global variable anywhere in your code:

    dynamicLogLevel = .verbose
    

    Discussion here

提交回复
热议问题