AAkira / Napier

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

Question. Pluggable loggers: slf4j, log4j2, luberjack, xcg, etc? #27

Closed petrukhnov closed 4 years ago

petrukhnov commented 4 years ago

Is it possible to plug specific platform logger, so all output will be directed to it. E.g. push every log to slf4j on jvm and to xcg on ios?

AAkira commented 4 years ago

You can inject your logger class like DebugAntilog.

You should implement the Antilog class in your class. Then you inject it at first.

Napier.base(YourClass())
petrukhnov commented 4 years ago

thx!