Created
December 3, 2015 13:10
-
-
Save TechIsFun/2d80e88382a259055721 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class CrashlyticsTree extends Timber.Tree { | |
@Override | |
protected void log(int priority, String tag, String message, Throwable t) { | |
if (priority == Log.VERBOSE || priority == Log.DEBUG) { | |
return; | |
} | |
Crashlytics.log(priority, tag, message); | |
if (t != null) { | |
Crashlytics.logException(t); | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment