hexmakina/log-laddy 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

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

hexmakina/log-laddy

Composer 安装命令:

composer require hexmakina/log-laddy

包简介

LogLaddy is a PSR-3 Logger Interface implementation, but aimed at user interface messaging

README 文档

README

The LogLaddy is an implementation of the PSR-3 Logger Interface, but aimed at user interface messaging It relies on \Psr\Log\LoggerTrait and \HexMakina\Debugger\Debugger

Scrutinizer Code Quality PSR-3 Compliant PSR-12 Compliant PHP 7.0 Required License Latest Stable Version

Usage

To create messages outside of errors and exceptions, first initialise the LogLaddy, with a compatible state agent (for storing user messages)

$l = new LogLaddy(StateAgentInterface $agent);

Then call one of the messaging method:

// for detailed debug information
$l->debug($message, array $context = array())

// for interesting events 
$l->info($message, array $context = array())

// for normal but significant events (and success messages)
$l->notice($message, array $context = array())

// for exceptional occurrences that are not errors
$l->warning($message, array $context = array())

// for runtime errors that do not require immediate action but should typically be logged and monitored
$l->error($message, array $context = array())

// for critical condition (Application component unavailable, unexpected exception)
$l->critical($message, array $context = array())

// when action must be taken immediately (website down, database unavailable, etc.)
$l->alert($message, array $context = array())

// when the system is unusable
$l->emergency($message, array $context = array())

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: mit
  • 更新时间: 2021-08-08

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固