php log 等级,Log等级

Verbose: Anything and everything you might want to know about a running block of code.

Debug: Internal system events that aren't necessarily observable from the outside.

Information: The lifeblood of operational intelligence - things happen.

Warning: Service is degraded or endangered.

Error: Functionality is unavailable, invariants are broken or data is lost.

Fatal: If you have a pager, it goes off when one of these occurs.

verbose 和 fatal 比较夸张,我可能根本不需要 用不上

像textractor的输出 调试期 我就可以用debug

info 等级比较灵活 一定要把握好,可能需要记录,知道用户的动作。但是我想不能是经常使用的操作,而导致不停的记录.

如描述所说,是命脉,是情报

warning 是在正常的操作,效果却不好的时候使用?不清楚

我想比如表示表明无法连接到网络环境?的时候可以使用

error 不应该发生的,完完全全的错误等级

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值