Using Timber and Bugfender to get the most out of your Android logs

Using Timber and Bugfender to get the most out of your Android logs

AndroidDebuggingQ/A
Fix bugs faster! Log Collection Made Easy
START NOW!

If you are familiar with Bugfender, you already know that it is possible to capture the logs sent to NSLog in iOS in order to send them to our cloud storage service.

Something we realized while making the Android version is that a lot of applications do not log to logcat when compiled for release. This poses a problem if we try to mimic the iOS SDK and capture the logs sent to logcat.

Here is when Timber comes in handy: according to their GitHub repository, Timber is “A logger with a small, extensible API which provides utility on top of Android’s normal Log class”. One of such utilites is the possibility of writing your own logger implementation (what in Timber is called a Tree):

This has proven very useful. We now have a double benefit: we have a decoupled implementation from the Android Logger, plus we can send logs to Bugfender with only adding the Tree to our logger instance.

What Are 1000 Apps Doing to Reduce Their Bugs to Zero?

Down to Zero is a practical guide to solving bugs. Our team has been developing mobile apps for over a decade and we'd like to share some tips we've picked up along the way.

Get the Ebook for Free

Down to Zero Ebook

To make it clear, it is not necessary at all to use Timber in order to use Bugfender, but Timber is a nice abstraction of the standard logger that brings you some flexibility and makes installing Bugfender a single line of code!

Timber.plant(new BugfenderTree(logger));

If you like this idea, sign up for a free Bugfender account right now and start using Timber or any other logger to upload your logs to the cloud.

Expect the Unexpected! Debug Faster with Bugfender
START FOR FREE

Trusted By

/assets/images/svg/customers/cool/ubiquiti.svg/assets/images/svg/customers/projects/menshealth.svg/assets/images/svg/customers/highprofile/credito_agricola.svg/assets/images/svg/customers/highprofile/tesco.svg/assets/images/svg/customers/projects/slack.svg/assets/images/svg/customers/cool/airmail.svg/assets/images/svg/customers/highprofile/deloitte.svg/assets/images/svg/customers/highprofile/volkswagen.svg

Already Trusted by Thousands

Bugfender is the best remote logger for mobile and web apps.

Get Started for Free, No Credit Card Required