[Tutor] Where does logging put its files?
Alan Gauld
alan.gauld at btinternet.com
Thu Apr 24 18:30:10 CEST 2014
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
More information about the Tutor
mailing list