python日志归集策略
roll_handler = logging.handlers.TimedRotatingFileHandler('a.log', 'D')
roll_handler.suffix = "%Y-%m-%d"
roll_handler.setLevel(logging.INFO)
roll_handler.setFormatter(logging.Formatter(formatter))
日志归集后形式如下:
a.log.2015-06-01
那么我如果想使用a.2015-06-01.log 应该如何设置日志归集策略
Copyright 2014-2025 https://www.php.cn/ All Rights Reserved | php.cn | 湘ICP备2023035733号
小伙看你根骨奇佳,潜力无限,来学PHP伐。