On Fri, 28 Nov 2014 16:14:30 -0500 Aravindhan Dhanasekaran <[email protected]> wrote:
> Hello, > > I'm new to Python/Ryu and I've a question regarding printing logs in Ryu (more > of Python, actually). > > I followed some existing Ryu examples and Python documentation to create a > simple logging infra for my project. Code is given below. > > Issue is that each of logs are printed twice. Once using my logger mechanism > (pretty print with all the formatting that I've enabled) and once more without > any formatting; just the bare message string. > > I'm not sure where I went wrong. I searched about this a bit, but couldn't get > anywhere. Any help would be appreciated. http://thread.gmane.org/gmane.network.ryu.devel/8161 The above thread might help. In short, you can use 'self.logger'. ------------------------------------------------------------------------------ Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server from Actuate! Instantly Supercharge Your Business Reports and Dashboards with Interactivity, Sharing, Native Excel Exports, App Integration & more Get technology previously reserved for billion-dollar corporations, FREE http://pubads.g.doubleclick.net/gampad/clk?id=157005751&iu=/4140/ostg.clktrk _______________________________________________ Ryu-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/ryu-devel
