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
  Potential Permission error on Mac OSX Catalina OWOLLC 2 2,054 Apr-24-2025, 04:45 AM
Last Post: TomBrooks
  How can I write formatted (i.e. bold, italic, change font size, etc.) text to a file? JohnJSal 12 28,424 Feb-13-2025, 04:48 AM
Last Post: tomhansky
  [SOLVED] [Linux] Write file and change owner? Winfried 6 1,659 Oct-17-2024, 01:15 AM
Last Post: Winfried
  The INSERT permission was denied on the object Steven5055 3 3,052 Jun-12-2024, 08:13 AM
Last Post: GregoryConley
  Delete file with read-only permission, but write permission to parent folder cubei 6 25,797 Jun-01-2024, 07:22 AM
Last Post: Eleanorreo
  What does .flush do? How can I change this to write to the file? Pedroski55 3 1,433 Apr-22-2024, 01:15 PM
Last Post: snippsat
  Can rich.logging output to file? pyfoo 1 2,412 Mar-21-2024, 10:30 AM
Last Post: pyfoo
  Python logging RotatingFileHandler writes to random file after the first log rotation rawatg 0 1,526 Feb-15-2024, 11:15 AM
Last Post: rawatg
  KivyMD android app - problem with permission polak7gt 0 938 Jan-18-2024, 01:27 PM
Last Post: polak7gt
  How can I change the uuid name of a file to his original file? MaddoxMB 2 2,268 Jul-17-2023, 10:15 PM
Last Post: Pedroski55

Forum Jump:

User Panel Messages

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