On 24/04/14 17:08, Peter Otten wrote:

  >>> logging.basicConfig(file='./log.txt', level=logging.DEBUG)
  >>> logging.info('some stuff')
INFO:root:some stuff

The printed logging messages might give a hint that you were not successful
in your attempt to specify a log-file. Try "filename" instead of "file":

Doh! That's embarrassing. I must get these spectacles cleaned :-)

Thanks.
--
Alan G
Author of the Learn to Program web site
http://www.alan-g.me.uk/
http://www.flickr.com/photos/alangauldphotos

_______________________________________________
Tutor maillist  -  [email protected]
To unsubscribe or change subscription options:
https://mail.python.org/mailman/listinfo/tutor

Reply via email to