Skip to content

Instantly share code, notes, and snippets.

@iwata-n
Created February 27, 2020 05:02
Show Gist options
  • Save iwata-n/ee6e984c1517edecd1dbee4674ac5ede to your computer and use it in GitHub Desktop.
Save iwata-n/ee6e984c1517edecd1dbee4674ac5ede to your computer and use it in GitHub Desktop.
logcatを色付けしてターミナルに表示するワンライナー
adb logcat -v time | awk '/^.* V\/.*$/ { print "\033[0m" $0 }; /^.* D\/.*$/ { print "\033[0;34m" $0 "\033[0m" }; /^.* I\/.*$/ { print "\033[0;32m" $0 "\033[0m" }; /^.* W\/.*$/ { print "\033[0;31m" $0 "\033[0m" }; /^.* E\/.*$/ { print "\033[1;31m" $0 "\033[0m" }'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment