ajaxy/logger

Ajaxy Logger

安装: 58

依赖项: 0

建议者: 0

安全: 0

星标: 0

关注者: 2

分支: 0

开放问题: 0

类型:ajaxy

v1.0.5 2023-07-12 08:30 UTC

This package is auto-updated.

Last update: 2024-09-20 16:38:58 UTC


README

Ajaxy - PHP 的 PSR-3 动态日志记录库

此库实现了 PSR-3

安装

使用以下命令安装最新版本:

$ composer require ajaxy/logger

基本用法

<?php

use Ajaxy\Logger\Logger;
use Ajaxy\Logger\Handler\Stream;

// create a log channel
$log = new Logger();
$log->pushHandler(new Stream('path/to/dir/', Logger::WARNING));

// dynamic logging
$log->debug('Foo');
$log->error('Bar');

// this will save the logging to anything.log
$log->{anything}('Bar');

关于

要求

  • Ajaxy\Logger 与 PHP 5.6 或更高版本兼容。

提交错误和功能请求

错误和功能请求在 GitHub 上跟踪

作者

Naji Amer - icu090@gmail.com - http://ajaxy.org

许可证

Ajaxy\Logger 采用 MIT 许可证 - 详细信息请参阅 LICENSE 文件