From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail.mhcomputing.net (master.mhcomputing.net [74.208.228.170]) by dpdk.org (Postfix) with ESMTP id 7537D2BF0 for ; Wed, 14 Sep 2016 23:24:58 +0200 (CEST) Received: by mail.mhcomputing.net (Postfix, from userid 1000) id 03B7AC9; Wed, 14 Sep 2016 14:24:57 -0700 (PDT) Date: Wed, 14 Sep 2016 14:24:57 -0700 From: Matthew Hall To: John Ousterhout Cc: users@dpdk.org Message-ID: <20160914212457.GA6972@mhcomputing.net> References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.21 (2010-09-15) Subject: Re: [dpdk-users] Redirect DPDK log? X-BeenThere: users@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: usage discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 14 Sep 2016 21:24:58 -0000 On Wed, Sep 14, 2016 at 02:08:27PM -0700, John Ousterhout wrote: > Is there a mechanism in DPDK that can interpose on the log output? I see > the function rte_openlog_stream to specify a different FILE* for output, > but that isn't quite general enough. I'd like for a method in my > application to receive all of the log messages, so I can wrap them > appropriately and then add them to an application-specific log. Does such a > hooking mechanism exist? http://www.gnu.org/software/libc/manual/html_node/String-Streams.html Matthew.