Closed soniccat closed 3 years ago
Any news on this?
@RomeuG you can check out my solution. Not sure if the maintainer is available.
Thanks, I guess Napier itself is dead.
@RomeuG @PhilipDukhov I contacted the maintainer on Twitter. He has plans to respond after May. Because he is busy now.
Please check 2.0.0-alpha2
Hi. I've tried to call Napier.v on iOS inside of withContext(Dispatchers.Default) i.e. from a non-main thread and didn't get anything logged. I see you use ThreadLocal annotation for Napier. And it seems on iOS I need to initialize Napier separately for Dispatchers.Default thread. Probably it worth adding support for logging from a non-main thread by default as now it looks like a bug.
In this example, I see only the first message logged on iOS. But the both messages are logged on Android. If I add Napier initialization inside of Dispatchers.Default, the both messages will be logged on iOS too:
For now I've ended up with calling this on iOS in a setup function: