talira

Logger (Android)

Readable, structured logs for Android in Logcat

open sourceApache-2.0free

Logger is an Apache-2.0 logging library for Android, written in Kotlin, that turns messages, collections, JSON and XML into readable output in Logcat. It prints pretty boxed output with optional thread and caller information, formats JSON and XML, shows lists, maps and arrays readably, supports custom tags and filtering, prints exception stack traces, and can log to Logcat, files or other destinations. It installs as com.orhanobut:logger. It isn't the Dart and Flutter package also called logger. Timber is another Android logger.

Problems it solves

  • make my Android app's Logcat output easier to read
  • pretty-print JSON responses in Android logs
  • write Android logs to a file as well as Logcat

Features

  • pretty Logcat output with optional thread and caller information
  • JSON and XML formatting
  • readable lists, maps and arrays
  • custom tags, filtering and log destinations such as files

Alternatives

The same job

These do what Logger (Android) does.

  1. Timber A small, extensible logger on top of Android's Log class

Compare Logger (Android) with the top 3