DPDK usage discussions
 help / color / mirror / Atom feed
* [dpdk-users] Logging with syslog
@ 2018-07-17  4:10 longtb5
  0 siblings, 0 replies; 2+ messages in thread
From: longtb5 @ 2018-07-17  4:10 UTC (permalink / raw)
  To: users

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 

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [dpdk-users] Logging with syslog
@ 2018-07-17 12:37 longtb5
  0 siblings, 0 replies; 2+ messages in thread
From: longtb5 @ 2018-07-17 12:37 UTC (permalink / raw)
  To: users

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:longtb5@viettel.com.vn]
> Sent: Tuesday, July 17, 2018 11:17 AM
> To: 'users@dpdk.org' <users@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
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

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2018-07-17 12:37 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-07-17  4:10 [dpdk-users] Logging with syslog longtb5
2018-07-17 12:37 longtb5

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).