定制 phpgenesis/logger 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

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

phpgenesis/logger

最新稳定版本:v1.9.1

Composer 安装命令:

composer require phpgenesis/logger

包简介

Logger for PHPGenesis

README 文档

README

The PHPGenesis Logger is an abstraction layer on top of the Laravel Log Facade and Monolog.

Installation

To install the Logger package, you can use Composer:

composer require phpgenesis/logger

Usage

To log a message, use the PHPGenesis\Logger\Logger class.

use PHPGenesis\Logger\Logger;

The following methods are available for you to use via Logger:

$message = 'This is an example logger message'; Logger::debug($message); Logger::info($message); Logger::notice($message); Logger::warning($message); Logger::error($message); Logger::critical($message); Logger::alert($message); Logger::emergency($message);

All methods all accept an additional optional parameter for context data. The context data must be an array and defaults to an empty array if not supplied

The Logger class will determine if the Laravel Log Facade is available and use it, otherwise it will use Monolog. If Laravel is available, the Logger class will use the Laravel configuration settings for logging. Otherwise, Logger will use the settings configured in your phpgenesis.json file.

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: BSD-3-Clause
  • 更新时间: 2026-01-04

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固