Jul-04-2024, 10:48 AM
(This post was last modified: Jul-04-2024, 10:48 AM by robertkwild.)
thanks guys the logging is working really well, this is a snippet of my code
logger = logging.getLogger(__name__) logging.basicConfig(filename='password.log', format='%(asctime)s:%(levelname)s:%(message)s', datefmt='%d/%m/%Y %H:%M:%S', encoding='utf-8', level=logging.DEBUG)and ive made logs for all the if/try/except statements in my code like
logger.warning(f'{form.un.data}your current password is wrong, please click back and try again')now i want to make new log file for every date ie 04/07/2024, 05/07/2024 etc etc, trying to do that now