OLD | NEW |
1 # Logging # | 1 # Logging # |
2 | 2 |
3 [TOC] | 3 [TOC] |
4 | 4 |
5 | 5 |
6 ## Overview | 6 ## Overview |
7 | 7 |
8 Logging used to be done using Android's [android.util.Log] | 8 Logging used to be done using Android's [android.util.Log] |
9 (http://developer.android.com/reference/android/util/Log.html). | 9 (http://developer.android.com/reference/android/util/Log.html). |
10 | 10 |
(...skipping 182 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
193 | 193 |
194 This shows only logs having a level higher or equal to DEBUG for | 194 This shows only logs having a level higher or equal to DEBUG for |
195 `cr_YourModuleTag`, and SILENT (nothing is logged at this level or higher, so it | 195 `cr_YourModuleTag`, and SILENT (nothing is logged at this level or higher, so it |
196 silences the tags) for everything else. You can persist a filter by setting an | 196 silences the tags) for everything else. You can persist a filter by setting an |
197 environment variable: | 197 environment variable: |
198 | 198 |
199 ```shell | 199 ```shell |
200 export ANDROID_LOG_TAGS="cr_YourModuleTag:D *:S" | 200 export ANDROID_LOG_TAGS="cr_YourModuleTag:D *:S" |
201 ``` | 201 ``` |
202 | 202 |
| 203 The syntax does not support tag expansion or regular expressions other than `*` |
| 204 for all tags. Please use `grep` or a similar tool to refine your filters |
| 205 further. |
| 206 |
203 For more, see the [related page on developer.android.com] | 207 For more, see the [related page on developer.android.com] |
204 (http://developer.android.com/tools/debugging/debugging-log.html#filteringOutput
) | 208 (http://developer.android.com/tools/debugging/debugging-log.html#filteringOutput
) |
OLD | NEW |