Created
March 27, 2018 23:18
-
-
Save SerggioC/270f0730a40662916a1322578c098106 to your computer and use it in GitHub Desktop.
TimberImplementation.java default Timber logging template
This file contains 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
import timber.log.Timber; | |
public class TimberImplementation { | |
public static void init() { | |
Timber.plant(new Timber.DebugTree() { | |
@Override | |
protected String createStackElementTag(StackTraceElement element) { | |
return String.format("Sergio> %s; Method %s; Line %s", | |
super.createStackElementTag(element), | |
element.getMethodName(), | |
element.getLineNumber()); | |
} | |
}); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
https://medium.com/@caueferreira/timber-enhancing-your-logging-experience-330e8af97341