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

前端 未结 7 567
太阳男子
太阳男子 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:20

    $ chgrp loggroup logdir
    $ chmod g+w logdir
    $ chmod g+s logdir
    $ usermod -a -G loggroup myuser
    $ umask 0002
    

提交回复
热议问题