On 05/01/17 13:01, anatta anatta wrote: > I have created a log file, using 'logging' module,
> name = raw_input ("Please enter your name.") > print 'Hi ', name, 'Please go ahead and press enter to transfer files' > > The log file records the variable 'name' in the log file at the > right location as I have coded. So far so good. > > However the log file also records the following statements > at the end of the log file. > > Hi 'name', Please go ahead and transfer files > > How can I prevent this line from appearing at the end of the logfile. Its hard to tell what's happening without seeing your code. If it is very long try creating a shirter example that exhibits the same behaviour and post that. (Doing so may even show you the error.) But with the limited information you've given us, we are just making wild guesses. -- Alan G Author of the Learn to Program web site http://www.alan-g.me.uk/ http://www.amazon.com/author/alan_gauld Follow my photo-blog on Flickr at: http://www.flickr.com/photos/alangauldphotos _______________________________________________ Tutor maillist - Tutor@python.org To unsubscribe or change subscription options: https://mail.python.org/mailman/listinfo/tutor