Keeping logs for every success fail attempt

hi all,

made a flask-wtf password website but now i want to keep logs on everytime someone changes there password either success or a failed attempt

i have loads of if statements and try/except so il add the logging to that

as this is on a windows machine can i save the logs to a file and make the file name into the time/date variable, i want it to minitor 24/7 so the logs will pile up

thanks,
rob

ok found it, il have a play