Timber is a logger with a small, extensible API which provides utility on top of Android's normal Log class. You can use this library and apply it into all the little apps you want to make. Behavior is added through Tree instances. You can install an instance by calling Timber.plant. Installation of Trees should be done as early as possible. The onCreate of your application is the most logical choice. The DebugTree implementation will automatically figure out from which class it's being called and use that class name as its tag. Since the tags vary, it works really well when coupled with a log reader like Pidcat. There are no Tree implementations installed by default. Timber ships with embedded lint rules to detect problems in your app. Timber detects the use of null or empty messages, or using the exception message when logging an exception.

Features

  • Detects an incorrect number of arguments passed to a Timber call for the specified format string
  • Detects arguments which are of the wrong type for the specified format string
  • Detects the use of tags which are longer than Android's maximum length of 23
  • Detects usages of Android's Log that should be using Timber
  • Detects String.format used inside of a Timber call. Timber handles string formatting automatically
  • Detects string concatenation inside of a Timber call

Project Samples

Project Activity

See All Activity >

Categories

Logging

License

Apache License V2.0

Follow Timber

Timber Web Site

Other Useful Business Software
Gemini 3 and 200+ AI Models on One Platform Icon
Gemini 3 and 200+ AI Models on One Platform

Access Google's best plus Claude, Llama, and Gemma. Fine-tune and deploy from one console.

Build generative AI apps with Vertex AI. Switch between models without switching platforms.
Start Free
Rate This Project
Login To Rate This Project

User Reviews

Be the first to post a review of Timber!

Additional Project Details

Operating Systems

Android

Programming Language

Kotlin

Related Categories

Kotlin Logging Software

Registered

2021-06-23