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

2017-04-26 Thread Henry Chang
source, message, timestamp. The keywords should be surrounded by percent signs as showed above. Regards, Henry Chang Signed-off-by: Henry Chang <mr.changyuh...@gmail.com> --- log/logread.c | 129 ++ 1 file changed, 102 insertions(+),

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 <philipp_s...@redfish-solutions.com> wrote: > >> On Apr 26, 2017, at 11:23 PM, Henry Cha

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

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

2017-04-27 Thread Henry Chang
From: Henry Chang <mr.changyuh...@gmail.com> Signed-off-by: Henry Chang <mr.changyuh...@gmail.com> --- log/logread.c | 153 -- 1 file changed, 127 insertions(+), 26 deletions(-) diff --git a/log/logread.c b/log/logread.c i

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

2017-04-27 Thread Henry Chang
From: Henry Chang <mr.changyuh...@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%

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

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

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

2017-05-01 Thread Henry Chang
From: Henry Chang <mr.changyuh...@gmail.com> Signed-off-by: Henry Chang <mr.changyuh...@gmail.com> --- log/logread.c | 163 -- 1 file changed, 137 insertions(+), 26 deletions(-) diff --git a/log/logread.c b/log/logread.c i

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

2017-05-01 Thread Henry Chang
From: Henry Chang <mr.changyuh...@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%

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

2017-05-01 Thread Henry Chang
<philipp_s...@redfish-solutions.com> wrote: > Inline… > > >> On Apr 27, 2017, at 5:33 PM, Henry Chang <mr.changyuh...@gmail.com> wrote: >> >> From: Henry Chang <mr.changyuh...@gmail.com> >> >> Signed-off-by: Henry Chang

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

2017-05-24 Thread Henry Chang
From: Henry Chang <mr.changyuh...@gmail.com> 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 se

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

2017-05-24 Thread Henry Chang
02/05/17 03:38, Henry Chang wrote: >> >> From: Henry Chang <mr.changyuh...@gmail.com> > > > Hi Henry, > > the patch fails to explain what it does and why it should be merged. Please > add that information > > John > > >> >> Signed-off

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

2017-05-02 Thread Henry Chang
special case. Regards, Henry On Tue, May 2, 2017 at 3:11 AM, Petr Štetiar <yn...@true.cz> wrote: > Henry Chang <mr.changyuh...@gmail.com> [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 ubo