93 Commits
Author SHA1 Message Date
mike castleman f643e4c3b4 Replace tabs with four spaces.
It appears that java stack dumps contain the tab character. This causes
line length computation to be messed up, so (on at least some
terminals), the lines end up wrapping twice -- once when we hit the
right edge of the terminal, and then again a few characters later when
indent_wrap() inserts a newline. By using spaces, where pidcat and the
terminal can agree on the width of the character, we obviate this
problem.
2013-07-18 16:38:04 -04:00
Eric Butler 2ae38a1955 Ignore bad utf8 data. Fixes #22. 2013-07-15 11:27:20 -07:00
Dario Marcato 83dde7639a Fix trim changes 2013-07-12 15:03:40 +02:00
Dario Marcato c39bd56415 Better regex 2013-07-12 14:56:14 +02:00
Robert Jacob e7a02cbefb Added arguments for selecting device/emulator analogue to adb. 2013-07-07 17:50:47 +02:00
Robert Jacob 064a73d2dc Fix bug line matching. 2013-07-07 16:13:27 +02:00
Jake Wharton 9ca81d87df Remove craziness around native tag bug line regex. 2013-07-03 16:35:50 -07:00
Jake Wharton a99784eaa5 Add 'F' level to log levels. 2013-06-24 09:16:07 -07:00
Jake Wharton 571826e8c0 UTF-8 decode and trim each line.
Closes #18.
2013-06-19 14:18:52 -07:00
Jake Wharton 106a4ceacd Code style tweaks. 2013-06-19 11:05:43 -07:00
Lucio Maciel d1ca77b0e9 Add support for -s device_serial option
It will pass the '-s serial_number' option to adb to select
which device to monitor
2013-06-19 08:36:09 -03:00
Jake Wharton f624fe4b22 Merge pull request #12 from shawnma/master
Support logcat level filtering
2013-06-18 18:37:57 -07:00
Jake Wharton d6819b04ae Use subprocess for adb command. Do not fail if we can't get terminal size. 2013-06-18 18:32:11 -07:00
Jake Wharton e14490a6e7 Merge branch 'master' of https://github.com/JakeWharton/pidcat 2013-06-18 08:26:24 -07:00
Jake Wharton 78aba9d35e Python 3-compatibility. 2013-06-18 08:26:06 -07:00
Shawn Ma 4095d3aae7 text change: "Minimum level" 2013-06-15 11:00:47 -07:00
Tomasz Rozbicki 0253471785 fix typo 'match_pacakges' 2013-06-15 17:50:12 +02:00
Tomasz Rozbicki 97bc4d1352 support for the 'fatal' tag 2013-06-15 02:07:42 +02:00
Jake Wharton cf8138a1e9 Proc start needs a newline. 2013-06-13 20:54:27 -07:00
Shawn Ma d53f70917a support level filtering 2013-06-13 14:08:13 -07:00
Edison Wang 5f3aadf6be renamed the function to be more descriptive. 2013-06-13 14:48:32 -04:00
Edison Wang f48b9a9dde do not print the arg at begining. 2013-06-13 14:46:36 -04:00
Edison Wang cb4af8a117 multiple package and process support. 2013-06-13 14:45:37 -04:00
Jake Wharton bce5ad6529 Better GC message detection. 2013-06-12 22:26:58 -07:00
Edison Wang 3b8b9df4b8 Check the package OR the package with the process token. 2013-06-12 18:52:34 -04:00
Jake Wharton 27d30b66b1 Multiple package support.
Closes #7.
2013-06-12 14:53:14 -07:00
Jake Wharton decd14471b Automatically color StrictMode violations log messages.
If the user opts-in to GC coloring (with --color-gc flag) then color freed space and main thread block times.
2013-06-12 14:45:48 -07:00
Edison Wang 7daa41e12c do not need to print this here. 2013-06-12 16:23:10 -04:00
Edison Wang 4aa2cf2287 support multiple processes for the same package. 2013-06-12 16:20:38 -04:00
Prateek Srivastava 33f5e6744f Filter the buggy line 2013-06-12 13:36:11 -06:00
Jake Wharton ff8ec0cdab Be more polite. 2013-06-12 10:24:31 -07:00
Jake Wharton 999a9e3b88 De-dup is not an option... 2013-06-12 10:21:07 -07:00
Jake Wharton ecfef8c571 Add log tag de-deuplication. 2013-06-12 10:17:22 -07:00
Jake Wharton 7b434651e1 Kill cache vars. 2013-06-12 10:13:27 -07:00
Jake Wharton e7b2dd24b8 Reduce newline abuse. 2013-06-12 10:10:12 -07:00
Jake Wharton 746405ef4e Better process death detection. 2013-06-12 10:09:30 -07:00
Jake Wharton fd37b580d7 Multiple process support.
Closes #3.
2013-06-12 09:38:00 -07:00
Jake Wharton efc94e236d Tweaks. 2013-06-12 09:31:26 -07:00
Jake Wharton 000caa3ab2 Allow specifying tag width as argument. 2013-06-12 08:34:23 -07:00
Jake Wharton e1d788e2ff Kill StringIO. 2013-06-12 08:18:53 -07:00
Jake Wharton ba9c5383a8 Message these are processes. 2013-06-11 23:35:35 -07:00
Jake Wharton 356cd1cfa2 Consistent process death messaging. 2013-06-11 23:32:38 -07:00
Jake Wharton b5326a1cd5 Initial import. 2013-06-11 22:59:50 -07:00