Does python logging.handlers.RotatingFileHandler allow creation of a group writable log file?

前端 未结 7 569
太阳男子
太阳男子 2021-01-31 08:40

I\'m using the standard python (2.5.2) logging module, specifically the RotatingFileHandler, on a linux system. My application supports both a command-line interfa

7条回答
  •  清歌不尽
    2021-01-31 09:23

    James Gardner has written a handler that only rotates files, not creating or deleting them: http://packages.python.org/logrotate/index.html

提交回复
热议问题