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

You Might Also Like
Our Free Plans just got better! | Auth0 by Okta Icon
Our Free Plans just got better! | Auth0 by Okta

With up to 25k MAUs and unlimited Okta connections, our Free Plan lets you focus on what you do best—building great apps.

You asked, we delivered! Auth0 is excited to expand our Free and Paid plans to include more options so you can focus on building, deploying, and scaling applications without having to worry about your secuirty. Auth0 now, thank yourself later.
Try free now
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