Skip to content

Instantly share code, notes, and snippets.

@xaethos
Created February 11, 2016 03:26
Show Gist options
  • Save xaethos/ddfac2519a429df4c8dc to your computer and use it in GitHub Desktop.
Save xaethos/ddfac2519a429df4c8dc to your computer and use it in GitHub Desktop.
Set the Android log level for a tag
#!/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