Re: [LEDE-DEV] [PATCH ubox v3] logread: Add support for output template

2017-05-24 Thread Henry Chang
Hi John, Thanks for responding. I've added the description to the commit message and resubmitted a v4 patch here: http://lists.infradead.org/pipermail/lede-dev/2017-May/007725.html Regards, Henry On Wed, May 24, 2017 at 2:30 AM, John Crispin wrote: > > > On 02/05/17 03:38, Hen

[LEDE-DEV] [PATCH ubox v4] logread: Add support for output template

2017-05-24 Thread Henry Chang
From: Henry Chang This patch let the users be able to define the output template, which means one can decide how the output logs should look like by providing a template. With this an user can easily integrate the output logs with the existing log collecting services that only accept certain

Re: [LEDE-DEV] [PATCH ubox v2] Add template support to logread

2017-05-02 Thread Henry Chang
uff. And I really don't think this is a special case. Regards, Henry On Tue, May 2, 2017 at 3:11 AM, Petr Štetiar wrote: > Henry Chang [2017-04-28 14:14:57]: > >> 1. logd is built-in logd is a built-in feature of ubox, and ubox is a heart >> of OpenWrt/LEDE. If ubox can achi

Re: [LEDE-DEV] [PATCH ubox v2] logread: Add support for output template

2017-05-01 Thread Henry Chang
lle wrote: > Inline… > > >> On Apr 27, 2017, at 5:33 PM, Henry Chang wrote: >> >> From: Henry Chang >> >> Signed-off-by: Henry Chang >> --- >> log/logread.c | 153 >> -- >>

[LEDE-DEV] [PATCH ubox v3] logread: Add support for output template

2017-05-01 Thread Henry Chang
From: Henry Chang Signed-off-by: Henry Chang --- log/logread.c | 163 -- 1 file changed, 137 insertions(+), 26 deletions(-) diff --git a/log/logread.c b/log/logread.c index edac1d9..f06dacc 100644 --- a/log/logread.c +++ b/log/logread.c

[LEDE-DEV] [PATCH ubox v3] logread: Add support for output template

2017-05-01 Thread Henry Chang
From: Henry Chang 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 supp

Re: [LEDE-DEV] [PATCH ubox] Add template support to logread

2017-04-28 Thread Henry Chang
Hi Philip, This is obsolete, please check v2 instead. http://lists.infradead.org/pipermail/lede-dev/2017-April/007193.html Regards, Henry On Fri, Apr 28, 2017 at 6:02 PM, Philip Prindeville wrote: > >> On Apr 26, 2017, at 11:23 PM, Henry Chang wrote: >> >> Hi,

Re: [LEDE-DEV] [PATCH ubox v2] Add template support to logread

2017-04-28 Thread Henry Chang
Hi, Since I got some questions from the subscribers, I'd like to explain more why I wanted to add this feature to a cutdown logging system logd instead of using a more comprehensive syslog implementation such as rsyslog. 1. logd is built-in logd is a built-in feature of ubox, and ubox is a heart

Re: [LEDE-DEV] [PATCH ubox v2] Add template support to logread

2017-04-27 Thread Henry Chang
ttps://www.loggly.com/docs/rsyslog-manual-configuration/ On Thu, Apr 27, 2017 at 10:20 PM, Baptiste Jonglez wrote: > Hi, > > On Thu, Apr 27, 2017 at 04:33:31PM -0700, Henry Chang wrote: >> Hi, >> >> I would like to integrate logd with a cloud logging service. >> The

[LEDE-DEV] [PATCH ubox v2] logread: Add support for output template

2017-04-27 Thread Henry Chang
From: Henry Chang Signed-off-by: Henry Chang --- log/logread.c | 153 -- 1 file changed, 127 insertions(+), 26 deletions(-) diff --git a/log/logread.c b/log/logread.c index edac1d9..3e3406a 100644 --- a/log/logread.c +++ b/log/logread.c

[LEDE-DEV] [PATCH ubox v2] Add template support to logread

2017-04-27 Thread Henry Chang
From: Henry Chang 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 supp

[LEDE-DEV] [PATCH ubox] Add template support to logread

2017-04-26 Thread Henry Chang
rity, source, message, timestamp. The keywords should be surrounded by percent signs as showed above. Regards, Henry Chang Signed-off-by: Henry Chang --- log/logread.c | 129 ++ 1 file changed, 102 insertions(+), 27 deletions(-) diff --git