Skip to content

jefryjacky/Smartlog-multiplatform

Repository files navigation

SmartLog

This is a Kotlin Multiplatform project targeting Android, iOS (on progress).

How to setup in android

class SmartLogApp: Application()  {

    override fun onCreate() {
        super.onCreate()
        AppContainer.factory = Factory(this)
        SmartLog.printers.add(LogCatPrinter())
    }
}

How to open log monitor in Android

  val intent = Intent(this, LogActivity::class.java)
  startActivity(intent)

How to log KMP or Android

SmartLog.v("LogViewModel", "test message")
SmartLog.i("LogViewModel", "test message")
SmartLog.w("LogViewModel", "test message")
SmartLog.e("LogViewModel", "test message")
SmartLog.wtf("LogViewModel", "test message")

Log monitor feature

  1. filter log
  2. play/pause log
  3. auto scroll top

About

multiplatform logging library

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published