Warning: file_get_contents(/data/phpspider/zhask/data//catemap/8/logging/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Python 我可以在TimedRotatingFileHandler的日志配置中设置后缀吗_Python_Logging - Fatal编程技术网

Python 我可以在TimedRotatingFileHandler的日志配置中设置后缀吗

Python 我可以在TimedRotatingFileHandler的日志配置中设置后缀吗,python,logging,Python,Logging,我可以在日志配置中为TimedRotatingFileHandler设置后缀吗 像这样: [handler_infohand] class=handlers.TimedRotatingFileHandler level=INFO formatter=fmt suffix="%Y%m%d%H%M%S" args=('logtailer.log','S', 5, 10)

我可以在日志配置中为
TimedRotatingFileHandler
设置后缀吗

像这样:

[handler_infohand]
class=handlers.TimedRotatingFileHandler
level=INFO
formatter=fmt
suffix="%Y%m%d%H%M%S"
args=('logtailer.log','S', 5, 10)