I used the Lumberjack logger with Objective-C and I like it. Now I'm starting to learn Swift, and I can’t use my favorite magazine. Can someone write step by step how can I do this, please? I'm trying to find something here, but all the themes are old with custom wrappers, before the release of Lumberjack 2.0. What I've done:
- I added Lumberjack with Cocoapods;
- I added "#import" to the Bridging-Header file.
And I don’t know what to do next? Because in ObjC I had macros: static const int ddLogLevel = LOG_LEVEL_INFO; else static const int ddLogLevel = LOG_LEVEL_VERBOSE; and my log level depends on the compilation flag ... Can I do it here? And how to use Lumberjack in code? Thanks!
ios logging swift lumberjack cocoalumberjack
user3742622
source share