Created
February 11, 2016 03:26
-
-
Save xaethos/ddfac2519a429df4c8dc to your computer and use it in GitHub Desktop.
Set the Android log level for a tag
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
# Basic script for setting the log level for an Android tag | |
# Usage: logtag tagname [loglevel] | |
# Will default to VERBOSE logging | |
cmd="adb shell setprop log.tag.${1:?Must provide a tag} ${2:-VERBOSE}" | |
echo $cmd | |
$cmd |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment