Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

adb shell setprop log.tag.SOMETAG VERBOSE, how to get SOMETAG?

When I watch android source code, I found

adb shell setprop log.tag.CAM2PORT_ VERBOSE 

This can output log in logcat. I want to know how to make all log tag output even if it is verbose.

I have tried

adb shell setprop log.tag.* VERBOSE  #It's not work

Thanks for your help

like image 848
Frank Fan Avatar asked Oct 27 '25 00:10

Frank Fan


1 Answers

In order to set a global minimum log level there is no need to configure tags individually. Just run

adb shell setprop persist.log.tag V

to enable all logs with any tag. Any supported Android priority can be set, so also DEBUG, INFO and others. The names can be specified in full, but only the first character is relevant. You can find more details here: https://medium.com/@mike_87757/set-android-minimum-log-level-globally-for-all-tags-4b1cbc1dc71f

like image 111
Mike Mostovyi Avatar answered Oct 29 '25 17:10

Mike Mostovyi



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!