Arunkarthicknallasami / alogcat

Automatically exported from code.google.com/p/alogcat
1 stars 0 forks source link

RFE: "-v threadtime" formatting #5

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What version of the product are you using? On what operating system?
1.4

Please provide any additional information below.

Request for enhancement:
Add support for "-v threadtime" formatting

Original issue reported on code.google.com by fiouzy@gmail.com on 2 Jun 2010 at 1:30

GoogleCodeExporter commented 8 years ago
i can't find any official docs on this. it would be nice to have a little more 
information. is this a 2.2 only feature?

Original comment by jeffrey.blattman@gmail.com on 2 Jun 2010 at 5:21

GoogleCodeExporter commented 8 years ago
I'm pretty new to Android and I don't know why it's undocumented at 
http://developer.android.com/guide/developing/tools/adb.html#outputformat but 
here is 
the output of integrated help from my Android 2.1 phone:

>adb shell logcat --help
Usage: logcat [options] [filterspecs]
options include:
  -s              Set default filter to silent.
                  Like specifying filterspec '*:s'
  -f <filename>   Log to file. Default to stdout
  -r [<kbytes>]   Rotate log every kbytes. (16 if unspecified). Requires -f
  -n <count>      Sets max number of rotated logs to <count>, default 4
  -v <format>     Sets the log print format, where <format> is one of:

                  brief process tag thread raw time threadtime long

  -c              clear (flush) the entire log and exit
  -d              dump the log and then exit (don't block)
  -g              get the size of the log's ring buffer and exit
  -b <buffer>     request alternate ring buffer
                  ('main' (default), 'radio', 'events')
  -B              output the log in binary
filterspecs are a series of
  <tag>[:priority]

where <tag> is a log component tag (or * for all) and priority is:
  V    Verbose
  D    Debug
  I    Info
  W    Warn
  E    Error
  F    Fatal
  S    Silent (supress all output)

'*' means '*:d' and <tag> by itself means <tag>:v

If not specified on the commandline, filterspec is set from ANDROID_LOG_TAG
If no filterspec is found, filter defaults to '*:I'

If not specified with -v, format is set from ANDROID_PRINTF_LOG
or defaults to "brief"

Also, it was available in SDK Tools r5 (don't know for previous versions, it's 
my 
first Android phone)

Original comment by fiouzy@gmail.com on 2 Jun 2010 at 5:34

GoogleCodeExporter commented 8 years ago
I don't really know git, but it seems that option has been there since the 
beginning:
http://android.git.kernel.org/?
p=platform/system/core.git;a=blob;f=logcat/logcat.cpp;h=d9ca131b64fcc3d1774068dc
f6a5e34
d05782a3f;hb=release-1.0

Original comment by fiouzy@gmail.com on 2 Jun 2010 at 5:53

GoogleCodeExporter commented 8 years ago
fixed in 1.5.1.

Original comment by jeffrey.blattman@gmail.com on 20 Sep 2010 at 7:03