Hi,

As it turns out, implementing a custom logstream with fopencookie() is
rather trivial. Sample code can be found online (google dpdk fopencookie)
and inside EAL source code as well. 

> -----Original Message-----
> From: Bao Long Tran [mailto:[email protected]]
> Sent: Tuesday, July 17, 2018 11:17 AM
> To: '[email protected]' <[email protected]>
> Subject: Logging with syslog
> 
> Hi,
> 
> I'm trying to improve the logging system for my application. From my
> understanding, the default log_stream is fopencookie()'d to enable sending
> logs to syslog as well. However, for my use case, logs should always be
sent
> to syslog, but not always written to stdout as it would clog up my command
> line interface (I'm using rte_cmdline).
> 
> Is there a way to achieve this with available DPDK logging utilities via
some
> kind of configuration? Or must I manually create another log_stream with
> fopencookie()?
> 
> Thanks and best regards,
> -BL

Reply via email to