O'Reilly logo

Reactive Android Programming by Tadas Subonis

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Centralized error logging

The code can become a real mess if each of the .subscribe() blocks have their own error-handling mechanisms. Quite often, the error-handling code is the same, and it is just a waste of time copying and pasting the same handlers around. Furthermore, if there is a need to change the way the logging works, it would have to be changed all over the place again.

In this section, we will explore a few ways of implementing a centralized logging solution so that it's easy to maintain and use.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required