[LEDE-DEV] [PATCH ubox v2] Add template support to logread
Henry Chang
mr.changyuheng at gmail.com
Thu Apr 27 16:33:31 PDT 2017
From: Henry Chang <mr.changyuheng at gmail.com>
Hi,
I would like to integrate logd with a cloud logging service.
The service only accepts certain format of log, so I decided to make logread support an output template.
Here's the usage:
logread -T "%priority% %source% %message% %timestamp%"
Currently supports 4 keywords: priority, source, message, timestamp.
The keywords should be surrounded by percent signs as showed above.
Regards,
Henry Chang
Henry Chang (1):
logread: Add support for output template
log/logread.c | 153 ++++++++++++++++++++++++++++++++++++++++++++++++----------
1 file changed, 127 insertions(+), 26 deletions(-)
--
2.7.4
More information about the Lede-dev
mailing list