我爱占星网 我爱占星网
首页
编程
java
php
前端
首页 编程 java php 前端

每周或每月旋转日志,而不是每天

I've just found the rotating_file type option for the monolog channels which will handle the rotation of the logs daily.

I'd like to rotate my logs weekly instead, but I can't find any info about it. Looking at the github project it seems that the possibility it at least contemplated:

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';
    ....

Is it possible?

近期文章

  • 将Array转换为XML(PHP上的simpleXML),添加子项
  • 没有现有订单的产品“已售出”的woocommerce挂钩
  • 如何修复,发布未插入的值。 mysql列是空的
  • 从网站和政策获取数据以获取数据(合法与否)
  • 如何使用ajax php和mysql正确显示进度条
  • 多插入PDO
  • 看起来没有XML文件
  • 如何使用PHP制作firebase动态链接?
  • 在PHP CodeIgniter中读取EXIF
  • .htaccess RewriteRule url只有数字[重复]
  • CSS不希望包含在文件中
  • BigINT和VarChar的区别,长度为16个字符
  • 如何在使用wp_dequeue_style时告诉'handle'的名称
  • onClick事件调用函数,但没有触发
  • 需要使用Redis来计算48小时的分数变化
  • “此字段是必需的”作为Discord API的响应
  • 如何在tcpdf中创建垂直侧标题表
  • 将laravel网站上传到cpanel时找不到“PDO”类
  • 如何删除插入jquery的errorPlacement中的元素
  • 如何在Divi主题的博客模块中获取作者的头像图像?

Copyright ©2022 我爱占星 All Rights Reserved.

浙ICP备2022030071号-1

部分图文来自网络,如有侵犯您的版权,请告诉我们删除

友情链接:代码精华