承接 sugiphp/logger 相关项目开发

从需求分析到上线部署,全程专人跟进,保证项目质量与交付效率

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

sugiphp/logger

Composer 安装命令:

composer require sugiphp/logger

包简介

关键字:

README 文档

README

Logger extends Monolog\Logger by adding the ability to log with custom error levels. Default Monolog levels are:

  • 600 -> EMERGENCY
  • 550 -> ALERT
  • 500 -> CRITICAL
  • 400 -> ERROR
  • 300 -> WARNING
  • 250 -> NOTICE
  • 200 -> INFO
  • 100 -> DEBUG

Each handler logs messages with level more than or equals to some given predefined level. With Monolog you can make a handler with minimum level of INFO. Any message with level INFO or above will be logged. A messages with level DEBUG will not be logged.

SugiPHP logger on the other hand is not limited to only those predefined log levels. It can handle arbitrary levels and can filter (log or not) any combination of them. You can use handler with a filter

"all -debug -system"

This will log any message with any level except messages with level "debug" and "system". Or you can make a filter like

"none +alert +special"

which will not log any messages except those with "alert" and "special" levels. Note that "emergency" level will not be logged since it is not included in the filter. SugiPHP logger does not have levels higher or lower than others. Each message level is treated as any other, and has no any "weight" or whatsoever.

统计信息

  • 总下载量: 487
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 0
  • 点击次数: 0
  • 依赖项目数: 1
  • 推荐数: 0

GitHub 信息

  • Stars: 0
  • Watchers: 1
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2013-04-07

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固