thinkphp6 日志处理
2023-03-29 23:03:03
177
{{single.collect_count}}

日志处理的操作由 Log 类完成,它记录着所有程序中运行的错误记录;

在 config 目录下的 log.php 配置文件,用于设置日志信息;

在 runtime 目录下后一个 log 文件夹,里面按照日期排好了每月的日志(多应用,则会按照应用目录分类)

系统提供了不同日志级别,默认 info 级别,从低到高排列如下:

debug/info/notice/warning/error/critical/alert/emergency/sql;
<?phpLog::record('测试日志࿰
回帖
全部回帖({{commentCount}})
{{item.user.nickname}} {{item.user.group_title}} {{item.friend_time}}
{{item.content}}
{{item.comment_content_show ? '取消' : '回复'}} 删除
回帖
{{reply.user.nickname}} {{reply.user.group_title}} {{reply.friend_time}}
{{reply.content}}
{{reply.comment_content_show ? '取消' : '回复'}} 删除
回帖
收起
没有更多啦~
{{commentLoading ? '加载中...' : '查看更多评论'}}