Skip to content

Instantly share code, notes, and snippets.

@SerggioC
Created March 27, 2018 23:18
Show Gist options
  • Save SerggioC/270f0730a40662916a1322578c098106 to your computer and use it in GitHub Desktop.
Save SerggioC/270f0730a40662916a1322578c098106 to your computer and use it in GitHub Desktop.
TimberImplementation.java default Timber logging template
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());
}
});
}
}
@SerggioC
Copy link
Author

TimberImplementation .init();

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment