[LEDE-DEV] [PATCH ubox v3] logread: Add support for output template
Henry Chang
mr.changyuheng at gmail.com
Mon May 1 18:26:58 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 | 163 ++++++++++++++++++++++++++++++++++++++++++++++++----------
1 file changed, 137 insertions(+), 26 deletions(-)
--
2.7.4
More information about the Lede-dev
mailing list