Skip to content

Instantly share code, notes, and snippets.

@hayleyxyz
Created December 16, 2015 03:56
Show Gist options
  • Save hayleyxyz/b8c2a1d63d00dde393b3 to your computer and use it in GitHub Desktop.
Save hayleyxyz/b8c2a1d63d00dde393b3 to your computer and use it in GitHub Desktop.
adb logcat example
# Usage: logcat [options] [filterspecs]
# (adb logcat or run logcat from shell inside Android)
# filterspecs are a series of
# <tag>[:priority]
#
# where <tag> is a log component tag (or * for all) and priority is:
# V Verbose
# D Debug
# I Info
# W Warn
# E Error
# F Fatal
# S Silent (supress all output)
#
# Priorities: http://developer.android.com/tools/debugging/debugging-log.html#filteringOutput
#
# Examples
# Show all errors
./adb logcat *:e
# Show warn messages with the tag "OpenGLRenderer"
# Example output:
# W/OpenGLRenderer( 7381): Incorrectly called buildLayer on View: FrameLayout, destroying layer...
# W/OpenGLRenderer( 7381): Incorrectly called buildLayer on View: FrameLayout, destroying layer...
#
./adb logcat OpenGLRenderer:w *:S
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment