You should find that file given your first debug() call as those lines
work for me here.

     $ cat >peter.py
     import logging
     logging.basicConfig(filename='debug_log.txt', level=logging.DEBUG, 
format='%(asctime)s - %(levelname)s - %(message)s')
     logging.debug('This is a log message.')
     $
     $ python peter.py
     $ cat debug_log.txt
     2021-01-29 09:42:35,195 - DEBUG - This is a log message.

I added those three lines to my file after the import time line,

and now it does not work, and I cannot find the logfile. I have connected the 
pi to the internet to do an update.  i'll look around and see if I have to load 
logger on to the pi separately.

Interesting statement on update:

"release file for 'update' is not valid yet(invalid for another 6d 23h  xmin 
30sec)   Not seen that before.


--
 Next meeting: Online, Jitsi, Tuesday, 2021-02-02 20:00
 Check to whom you are replying
 Meetings, mailing list, IRC, ...  http://dorset.lug.org.uk
 New thread, don't hijack:  mailto:dorset@mailman.lug.org.uk

Reply via email to