hi all,
the below code works
thanks,
rob
the below code works
logger = logging.getLogger("Rotating Log") logger.setLevel(logging.DEBUG) handler = TimedRotatingFileHandler(filename='password.log', when='S', interval=30, backupCount=5, delay=True) formatter = logging.Formatter('%(asctime)s:%(levelname)s:%(message)s', datefmt='%Y/%m/%d %H:%M:%S') handler.setFormatter(formatter) logger.addHandler(handler)but none of the debug messages are going in the log file
thanks,
rob
Larz60+ write Jul-09-2024, 11:16 PM:
Please don't start a new thread on same subject.
Please don't start a new thread on same subject.