我刚刚发现了独白频道的rotating_file
类型选项,它将每天处理日志的轮换。
我想每周轮换日志,但找不到任何相关信息。看着github项目,看来它至少可以设想到这种可能性:
class RotatingFileHandler extends StreamHandler
{
public const FILE_PER_DAY = 'Y-m-d';
public const FILE_PER_MONTH = 'Y-m';
public const FILE_PER_YEAR = 'Y';
....
有可能吗?