[dpdk-users] Logging with syslog

longtb5 at viettel.com.vn longtb5 at viettel.com.vn
Tue Jul 17 14:37:19 CEST 2018


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:longtb5 at viettel.com.vn]
> Sent: Tuesday, July 17, 2018 11:17 AM
> To: 'users at dpdk.org' <users at dpdk.org>
> 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
> 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
> kind of configuration? Or must I manually create another log_stream with
> fopencookie()?
> Thanks and best regards,
> -BL

More information about the users mailing list