logger icon indicating copy to clipboard operation
logger copied to clipboard

How to add AppVersion to logcat

Open hoi-nx opened this issue 6 years ago • 3 comments

I want to add appversion to logcat? how to do that?

hoi-nx avatar Feb 16 '19 09:02 hoi-nx

I want to add appversion to logcat? how to do that?

tangchao0106 avatar Feb 23 '19 01:02 tangchao0106

        PrettyFormatStrategy.newBuilder()
            .logStrategy(logStrategy)
            .methodCount(0)
            .showThreadInfo(false)
            .methodOffset(2)
            .tag("${context.getString(R.string.app_name)}_${BuildConfig.VERSION_NAME}") // Magic ;)
            .build()

Fi5t avatar Mar 04 '19 09:03 Fi5t

PrettyFormatStrategy.newBuilder()
        .logStrategy(logStrategy)
        .methodCount(0)
        .showThreadInfo(false)
        .methodOffset(2)
        .tag("tag-"+BuildConfig.VERSION_NAME) 
        .build()

tangchao0106 avatar Mar 05 '19 08:03 tangchao0106