Hi Yafeng,
You can use --log-* arguments with ryu-manager.
e.g.
ryu-manager --log-file=/home/ubuntu/Desktop/yaphone/log/log.txt myapp
See ryu-manager --help for the usage.
2014-11-27 23:42 GMT+08:00 Yafeng Zhou <[email protected]>:
> Hi,FUJITA
>
> Thank you for you help.
> * I am a newer in both ryu and python, I just don't know how to use this
> moudle *https://github.com/osrg/ryu/blob/master/ryu/log.py , if I use
> it, where the log saved? And what shoud I do if I want to save the log to
> other path?
> Thank you very much!
>
> 2014-11-27 22:46 GMT+08:00 FUJITA Tomonori <[email protected]>
> :
>
>> 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
>
>
--
Sincerely,
Wei-Li Tang
RD Engineer, Xinguard Inc.
------------------------------------------------------------------------------
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