diff options
author | Pierre Zurek <pierrezurek@gmail.com> | 2010-10-17 22:39:37 +0200 |
---|---|---|
committer | Mark Salyzyn <salyzyn@google.com> | 2014-09-11 19:04:17 -0700 |
commit | ead88fca6e7178ed8b6e89701a5842a3e34a0a3f (patch) | |
tree | a24b66fd9c0690b157cee915d570051059537839 /logcat | |
parent | 91baad56f39fb77a4d07a0930c8743ebc61d7c0a (diff) | |
download | system_core-ead88fca6e7178ed8b6e89701a5842a3e34a0a3f.zip system_core-ead88fca6e7178ed8b6e89701a5842a3e34a0a3f.tar.gz system_core-ead88fca6e7178ed8b6e89701a5842a3e34a0a3f.tar.bz2 |
liblog: logcat: colored output.
This patch adds a new '-v color' option to logcat so that the output is
colored similar to the ones in DDMS. Simply type "adb logcat -v color"
to use it. Works well with bash in gnome-terminal. NO GUARANTEE IT WILL
WORK ON A NON xterm STYLE TERMINAL.
Signed-off-by: Michael Zimmermann <sigmaepsilon92@gmail.com>
Signed-off-by: Mark Salyzyn <salyzyn@google.com>
Change-Id: I9189c5f27fed991579edbcbc6834536eb8112152
Diffstat (limited to 'logcat')
-rw-r--r-- | logcat/logcat.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/logcat/logcat.cpp b/logcat/logcat.cpp index 858e56c..fecbdb7 100644 --- a/logcat/logcat.cpp +++ b/logcat/logcat.cpp @@ -219,8 +219,8 @@ static void show_help(const char *cmd) " -f <filename> Log to file. Default to stdout\n" " -r [<kbytes>] Rotate log every kbytes. (16 if unspecified). Requires -f\n" " -n <count> Sets max number of rotated logs to <count>, default 4\n" - " -v <format> Sets the log print format, where <format> is one of:\n\n" - " brief process tag thread raw time threadtime long\n\n" + " -v <format> Sets the log print format, where <format> is:\n\n" + " brief color long process raw tag thread threadtime time\n\n" " -c clear (flush) the entire log and exit\n" " -d dump the log and then exit (don't block)\n" " -t <count> print only the most recent <count> lines (implies -d)\n" |