java Android / Log / Timber - 在木材日志上打印行号。源= HTTPS://caster.io/episodes/episode-14-logging-with-timb

Posted

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了java Android / Log / Timber - 在木材日志上打印行号。源= HTTPS://caster.io/episodes/episode-14-logging-with-timb相关的知识,希望对你有一定的参考价值。

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();
            }
        });
    }
}

以上是关于java Android / Log / Timber - 在木材日志上打印行号。源= HTTPS://caster.io/episodes/episode-14-logging-with-timb的主要内容,如果未能解决你的问题,请参考以下文章

java Android / Log / Timber - 在木材日志上打印行号。源= HTTPS://caster.io/episodes/episode-14-logging-with-timb

java Android / Log / Timber - 在木材日志上打印行号。源= HTTPS://caster.io/episodes/episode-14-logging-with-timb

java Android / Log / Timber - 在木材日志上打印行号。源= HTTPS://caster.io/episodes/episode-14-logging-with-timb

java Android / Log / Timber - 在木材日志上打印行号。源= HTTPS://caster.io/episodes/episode-14-logging-with-timb

java Android / Log / Timber - 在木材日志上打印行号。源= HTTPS://caster.io/episodes/episode-14-logging-with-timb

java Android / Log / Timber - 在木材日志上打印行号。源= HTTPS://caster.io/episodes/episode-14-logging-with-timb