Skip to content

Instantly share code, notes, and snippets.

Avatar

Chris Renke ChrisRenke

View GitHub Profile
@ChrisRenke
ChrisRenke / ThreadAwareDebugTree.java
Last active Apr 13, 2016
Thread-Aware Tree for Timber
View ThreadAwareDebugTree.java
import timber.log.Timber;
/** Tree that logs the current thread pre-pended. Useful for multi-thread Rx'y things. */
public class ThreadAwareDebugTree extends Timber.DebugTree {
@Override protected boolean isLoggable(int priority) {
return super.isLoggable(priority);
}
@Override protected void log(int priority, String tag, String message, Throwable t) {
You can’t perform that action at this time.