Skip to content

Instantly share code, notes, and snippets.

@x7c1
Created April 29, 2016 10:33
Show Gist options
  • Select an option

  • Save x7c1/21958ab2217ba734d4efff8944f6b7ce to your computer and use it in GitHub Desktop.

Select an option

Save x7c1/21958ab2217ba734d4efff8944f6b7ce to your computer and use it in GitHub Desktop.
Robolectric で android.util.Log の出力先を変える ref: http://qiita.com/jwhaco/items/8c7c3b031bf14436f43b
ShadowLog.stream = System.out;
ShadowLog.stream = new PrintStream(
new FileOutputStream("hoge.log"), true)
tail -f your-project/hoge.log | egrep --line-buffered "(E/|W/)"
tail -f your-project/hoge.log | egrep -A10 --line-buffered "(E/)"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment