DPDK usage discussions
 help / color / mirror / Atom feed
* [dpdk-users] Capture EAL Output For Logging
@ 2016-06-29 16:21 Cliff Burdick
  2016-06-29 16:30 ` Van Haaren, Harry
  0 siblings, 1 reply; 2+ messages in thread
From: Cliff Burdick @ 2016-06-29 16:21 UTC (permalink / raw)
  To: users

Hi, if I have my own logging mechanism, is there a way to capture the EAL
output, especially on startup? The best way I can think of is to open a
pipe to a child process that reads from stdout, and logs from there, but
that seems like somewhat of a hack. I've seen patches that seem like they
may be useful here:

http://dpdk.org/ml/archives/dev/2013-May/000139.html

But I believe this just lets you change the syslog facility while the
console messages still go out. I would like to silence EAL to the console
completely, and instead send each line to my custom logger. Has anyone does
this?

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

* Re: [dpdk-users] Capture EAL Output For Logging
  2016-06-29 16:21 [dpdk-users] Capture EAL Output For Logging Cliff Burdick
@ 2016-06-29 16:30 ` Van Haaren, Harry
  0 siblings, 0 replies; 2+ messages in thread
From: Van Haaren, Harry @ 2016-06-29 16:30 UTC (permalink / raw)
  To: Cliff Burdick, users

> From: users [mailto:users-bounces@dpdk.org] On Behalf Of Cliff Burdick
> Hi, if I have my own logging mechanism, is there a way to capture the EAL
> output, especially on startup? The best way I can think of is to open a
> pipe to a child process that reads from stdout, and logs from there, but
> that seems like somewhat of a hack. 

The same approach of using pipes has been taken for the CollectD plugin for DPDK[1]; it has proven to work fine. Based on the experience of developing, having a child process with pipes makes it a little more complex to debug, but not drastically so.

Hope that helps! Regards, -Harry

[1] https://github.com/collectd/collectd/pull/1649

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

end of thread, other threads:[~2016-06-29 16:30 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-06-29 16:21 [dpdk-users] Capture EAL Output For Logging Cliff Burdick
2016-06-29 16:30 ` Van Haaren, Harry

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).