AAkira / Napier

Logging library for Kotlin Multiplatform
Apache License 2.0
786 stars 34 forks source link

Modify ios log #77

Closed AAkira closed 3 years ago

AAkira commented 3 years ago

Modify iOS log format.

show coroutines suffix

Napier.base(DebugAntilog())

08-19 02:10:53.537 💜 VERBOSE Sample.hello - Hello napier
08-19 02:10:53.548 💚 DEBUG your tag - optional tag
08-19 02:10:53.549 ❤️ ERROR Sample.handleError - Napier Error
08-19 02:10:53.550 💙 INFO Sample.suspendHello[async] - Hello
08-19 02:10:56.564 💛 WARN Sample.suspendHello[async] - Napier!

hide coroutines suffix

Napier.base(DebugAntilog(coroutinesSuffix = false))

08-19 02:08:56.050 💜 VERBOSE Sample.hello - Hello napier
08-19 02:08:56.061 💚 DEBUG your tag - optional tag
08-19 02:08:56.062 ❤️ ERROR Sample.handleError - Napier Error
08-19 02:08:56.062 💙 INFO Sample.suspendHello - Hello
08-19 02:08:59.082 💛 WARN Sample.suspendHello - Napier!