Skip to content
This repository has been archived by the owner on Feb 22, 2024. It is now read-only.

Logging

Michal Harakal edited this page Mar 7, 2018 · 1 revision

Logging

Since Dukecon app heavily uses advantages of Clean Architecture by using plain kotlin modules (aka no dependecy on Android framework), we need a solution working with both types of modules (Android, plain kotlin, plain java)

These seems to be usual ways to do logging in Android with kotlin:

  • "old" Android libs with no dependecy on Android (Timber ?)
  • AnkoLogger
  • kotlin-logging

Timber

is a Android library project, not tested yet with plain kotlin modules.

AnkoLogger

Is a part of Anko Kotlin Project Uses own kotlin notation. Probably #1 if using Anko. What is not our case

kotlin-logging

Kotlin-Logging has a dependency on SLF4J which is usually used with java project and has multiple Android frontends.

  • default impelemntation org.slf4j:slf4j-android uses Android Logger
  • logback-android very powerful but also quite a heavy in terms of size and dexcount
Clone this wiki locally