Android / Log / Timber - print line number on timber logs. source=https://caster.io/episodes/episode-14-logging-with-timber/
public class App extends Application {
@Override
public void onCreate() {
super.onCreate();
Timber.plant(new Timber.DebugTree() {
@Override
protected String createStackElementTag(StackTraceElement element) {
return super.createStackElementTag(element) + ":" + element.getLineNumber();
}
});
}
}