Android Studio has a lot of nice features to make the lives of us Android developers a lot easier. One of those features is Live Templates. Raise your hand if you don’t know what a Live Template is. Got your hand up? Great, keep reading. Don’t have your hand raised? Well… there still might be a nice surprise for you at the bottom of this article.Timber (a small extensible logger API) in most of my projects, these build in Live Templates were not at use to me. That’s why I configured my own Live Templates specifically for Timber. These make it easy to log and make new Timber Tree instances.
- timv, timd, timi, timw and time will create Timber log statements for VERBOSE, DEBUG, INFO, WARN and ERROR verbosity.
- timp will plant a new Timber Tree instance.
- timt will allow for a one-time use of a custom tag.
- and finally timm and timr will log the parameters and return value of a method.