阅读背景:

python logging.handlers.RotatingFileHandler是否允许创建组可写日志文件?

来源:互联网 

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 interface and a web-service interface. I would like to have both write to the same log file. However, when the log file gets rotated, the new file has 644 permissions and is owned by the web server user which prevents the command-line user from writing to it. Can I specify that new log files should be group-writable in the logging configuration or during logging initialization?I'm using the standard python (2.5.2) logging m




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: