Created
April 29, 2016 10:33
-
-
Save x7c1/21958ab2217ba734d4efff8944f6b7ce to your computer and use it in GitHub Desktop.
Robolectric で android.util.Log の出力先を変える ref: http://qiita.com/jwhaco/items/8c7c3b031bf14436f43b
This file contains hidden or 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
| ShadowLog.stream = System.out; |
This file contains hidden or 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
| ShadowLog.stream = new PrintStream( | |
| new FileOutputStream("hoge.log"), true) |
This file contains hidden or 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
| tail -f your-project/hoge.log | egrep --line-buffered "(E/|W/)" |
This file contains hidden or 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
| 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