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

2021-02-23 Thread Feng Li
Hi Dmitry, Thanks for your comments. I will submit the next patch to address your concern. On Fri, Feb 19, 2021 at 4:11 PM Dmitry Kozlyuk wrote: > > On Thu, 18 Feb 2021 14:12:53 +0800, Li Feng wrote: > > By default, the dpdk log is out to stdout/stderr and syslog. > > The rte_openlog_stream could

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

2021-02-19 Thread Dmitry Kozlyuk
On Thu, 18 Feb 2021 14:12:53 +0800, Li Feng wrote: > By default, the dpdk log is out to stdout/stderr and syslog. > The rte_openlog_stream could set an external FILE* stream, but it > asks the consumer to give it a FILE* pointer. > For C++ or other languages, it's hard to get a libc FILE*. > > Sup

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

2021-02-17 Thread Li Feng
By default, the dpdk log is out to stdout/stderr and syslog. The rte_openlog_stream could set an external FILE* stream, but it asks the consumer to give it a FILE* pointer. For C++ or other languages, it's hard to get a libc FILE*. Support to set a hook is another choice for this scenario. Signed