summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorMark Salyzyn <salyzyn@google.com>2015-08-31 08:01:33 -0700
committerMark Salyzyn <salyzyn@google.com>2015-09-24 14:49:55 -0700
commitf28f6a9ba228803b402ebaccb59f1b2f2fd4af92 (patch)
tree4566d15e663aeb762738dc42096e043f556494ee /include
parentcd27f8a1980de7af748c22a24efd691f19cae4e2 (diff)
downloadcore-f28f6a9ba228803b402ebaccb59f1b2f2fd4af92.tar.gz
core-f28f6a9ba228803b402ebaccb59f1b2f2fd4af92.tar.bz2
core-f28f6a9ba228803b402ebaccb59f1b2f2fd4af92.zip
liblog: logcat: Add year and zone to date on each line
- '-v year' modifier adds the four digit year prefix - '-v <timezone>' modifier sets and prints the timezone suffix - Only promise in logcat to support UTC as a timezone since all others are based on the configured environment - '-v zone' modifier toggles the timezone suffix on or off - '-T YYYY-MM-DD HH:MM:SS.mmm...' format is added Bug: 23668700 Change-Id: I7521c1efb7455dc9a25434fce72a69a65dcf72ea
Diffstat (limited to 'include')
-rw-r--r--include/log/logprint.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/include/log/logprint.h b/include/log/logprint.h
index 4b812cc94..26b1ee5a1 100644
--- a/include/log/logprint.h
+++ b/include/log/logprint.h
@@ -36,10 +36,12 @@ typedef enum {
FORMAT_TIME,
FORMAT_THREADTIME,
FORMAT_LONG,
- /* The following three are modifiers to above formats */
+ /* The following are modifiers to above formats */
FORMAT_MODIFIER_COLOR, /* converts priority to color */
FORMAT_MODIFIER_TIME_USEC, /* switches from msec to usec time precision */
FORMAT_MODIFIER_PRINTABLE, /* converts non-printable to printable escapes */
+ FORMAT_MODIFIER_YEAR, /* Adds year to date */
+ FORMAT_MODIFIER_ZONE, /* Adds zone to date */
} AndroidLogPrintFormat;
typedef struct AndroidLogFormat_t AndroidLogFormat;