On Thu, 27 Nov 2014 22:34:02 +0800
Yafeng Zhou <[email protected]> wrote:

> Hello,all,
> 
>     I am trying to use the logging module in my app, the codes like this:
> 
> import logging
> 
> logging.basicConfig(filename='/home/ubuntu/Desktop/yaphone/log/log.txt',
> level=logging.NOTSET)
> LOG = logging.getLogger('myapp')
> LOG.setLevel(logging.NOTSET)
> LOG.info('test')
> 
> and run the app as :ryu-manager myapp, but I found nothing in log.txt
> 
> However I run it as: python myapp, everythong goes will, and 'test' in
> log.txt
> 
> I think ryu do some tricks, could anyone tell me the reason?
> Thank you in advance!

The following feature doesn't work for you?

https://github.com/osrg/ryu/blob/master/ryu/log.py

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

Reply via email to