On Wed, 10 Feb 2021 13:20:19 +0800
Li Feng <[email protected]> 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*.
> 
> Support to set a hook is another choice for this scenario.
> 
> Signed-off-by: Li Feng <[email protected]>
> ---

Rejecting this patch.
You can do the same thing with a small bit of C called during application
init that creates a standard I/O stream. Like fopencookie().

The added overhead of adding callback here adds unnecessary complexity.

Reply via email to