Re: [dpdk-dev] [PATCH] log: support custom log function

2021-02-07 Thread Feng Li
Feng Li 于2021年2月6日周六 上午12:54写道: > > Stephen Hemminger 于2021年2月6日周六 上午12:11写道: > > > > On Fri, 5 Feb 2021 12:55:48 +0100 > > David Marchand wrote: > > > > > On Fri, Feb 5, 2021 at 12:25 PM Li Feng wrote: > > > > > > > > Currently, the dpdk log is out to stdout/stderr and syslog. > > > > We shoul

Re: [dpdk-dev] [PATCH] log: support custom log function

2021-02-07 Thread Feng Li
Stephen Hemminger 于2021年2月6日周六 上午12:11写道: > > On Fri, 5 Feb 2021 12:55:48 +0100 > David Marchand wrote: > > > On Fri, Feb 5, 2021 at 12:25 PM Li Feng wrote: > > > > > > Currently, the dpdk log is out to stdout/stderr and syslog. > > > We should support to output the log to another please, e.g. f

Re: [dpdk-dev] [PATCH] log: support custom log function

2021-02-05 Thread Stephen Hemminger
On Fri, 5 Feb 2021 20:22:36 +0800 Feng Li wrote: > David Marchand 于2021年2月5日周五 下午7:56写道: > > > > On Fri, Feb 5, 2021 at 12:25 PM Li Feng wrote: > > > > > > Currently, the dpdk log is out to stdout/stderr and syslog. > > > We should support to output the log to another please, e.g. file or > >

Re: [dpdk-dev] [PATCH] log: support custom log function

2021-02-05 Thread Feng Li
David Marchand 于2021年2月5日周五 下午7:56写道: > > On Fri, Feb 5, 2021 at 12:25 PM Li Feng wrote: > > > > Currently, the dpdk log is out to stdout/stderr and syslog. > > We should support to output the log to another please, e.g. file or > > glog. > > Why not use rte_openlog_stream() / rte_log_get_stream(

Re: [dpdk-dev] [PATCH] log: support custom log function

2021-02-05 Thread Feng Li
Li Feng 于2021年2月5日周五 下午7:24写道: > > Currently, the dpdk log is out to stdout/stderr and syslog. > We should support to output the log to another please, e.g. file or > glog. Sorry, sed 's/please/place/g'. > > Signed-off-by: Li Feng > --- > lib/librte_eal/common/eal_private.h | 10 -- > li

Re: [dpdk-dev] [PATCH] log: support custom log function

2021-02-05 Thread Stephen Hemminger
On Fri, 5 Feb 2021 12:55:48 +0100 David Marchand wrote: > On Fri, Feb 5, 2021 at 12:25 PM Li Feng wrote: > > > > Currently, the dpdk log is out to stdout/stderr and syslog. > > We should support to output the log to another please, e.g. file or > > glog. > > Why not use rte_openlog_stream() /

Re: [dpdk-dev] [PATCH] log: support custom log function

2021-02-05 Thread Dmitry Kozlyuk
On Fri, 5 Feb 2021 20:22:36 +0800, Feng Li wrote: > David Marchand 于2021年2月5日周五 下午7:56写道: > > > > On Fri, Feb 5, 2021 at 12:25 PM Li Feng wrote: > > > > > > Currently, the dpdk log is out to stdout/stderr and syslog. > > > We should support to output the log to another please, e.g. file or > >

Re: [dpdk-dev] [PATCH] log: support custom log function

2021-02-05 Thread David Marchand
On Fri, Feb 5, 2021 at 12:25 PM Li Feng wrote: > > Currently, the dpdk log is out to stdout/stderr and syslog. > We should support to output the log to another please, e.g. file or > glog. Why not use rte_openlog_stream() / rte_log_get_stream() ? -- David Marchand

[dpdk-dev] [PATCH] log: support custom log function

2021-02-05 Thread Li Feng
Currently, the dpdk log is out to stdout/stderr and syslog. We should support to output the log to another please, e.g. file or glog. Signed-off-by: Li Feng --- lib/librte_eal/common/eal_private.h | 10 -- lib/librte_eal/include/rte_eal.h| 22 ++ lib/librte_eal/li