Mar-21-2022, 02:37 PM
Hello,
I'm using logging and I have notice that the file is not clean after reboot (program start again)
what do I need to do in order to "clean" the log file ?
this is what I have :
I'm using logging and I have notice that the file is not clean after reboot (program start again)
what do I need to do in order to "clean" the log file ?
this is what I have :
import logging logging.basicConfig(filename='/home/pi/logs/App1_Log.log', level=logging.INFO, format='%(asctime)s %(message)s') . . . . logging.info('%s:%s', Data)Thanks ,