Python Forum
logging: change log file permission with RotatingFileHandler
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
logging: change log file permission with RotatingFileHandler
#1
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
likes this post
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  What does .flush do? How can I change this to write to the file? Pedroski55 3 232 Apr-22-2024, 01:15 PM
Last Post: snippsat
  Can rich.logging output to file? pyfoo 1 274 Mar-21-2024, 10:30 AM
Last Post: pyfoo
  Python logging RotatingFileHandler writes to random file after the first log rotation rawatg 0 417 Feb-15-2024, 11:15 AM
Last Post: rawatg
  KivyMD android app - problem with permission polak7gt 0 297 Jan-18-2024, 01:27 PM
Last Post: polak7gt
  Potential Permission error on Mac OSX Catalina OWOLLC 1 725 Nov-02-2023, 07:52 AM
Last Post: unjnsacih
  How can I change the uuid name of a file to his original file? MaddoxMB 2 938 Jul-17-2023, 10:15 PM
Last Post: Pedroski55
  The INSERT permission was denied on the object Steven5055 2 1,491 Feb-25-2023, 11:37 PM
Last Post: Steven5055
  unittest generates multiple files for each of my test case, how do I change to 1 file zsousa 0 974 Feb-15-2023, 05:34 PM
Last Post: zsousa
  find some word in text list file and a bit change to them RolanRoll 3 1,549 Jun-27-2022, 01:36 AM
Last Post: RolanRoll
  create new log file on logging? korenron 6 2,313 Mar-22-2022, 07:14 AM
Last Post: korenron

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020