Python Forum
logging: change log file permission with RotatingFileHandler - Printable Version

+- Python Forum (https://python-forum.io)
+-- Forum: Python Coding (https://python-forum.io/forum-7.html)
+--- Forum: General Coding Help (https://python-forum.io/forum-8.html)
+--- Thread: logging: change log file permission with RotatingFileHandler (/thread-40513.html)



logging: change log file permission with RotatingFileHandler - erg - Aug-09-2023

What I'd like is to be able to change default log file permissions for logs created with python logging module and RotatingFileHandler.
I don't see any way to do it while initializing RotatingFileHandler so I suppose it requires some creativity.
I'm using RotatingFileHandler and python 2.6