seasx/seas-logger
最新稳定版本:2.0.1
Composer 安装命令:
composer require seasx/seas-logger
包简介
An effective,fast,stable log package for PHP
README 文档
README
An effective,fast,stable log package for PHP base SeasLog
This library implements the PSR-3 and PSR-4
Installation
Install the latest version with
$ composer require seasx/seas-logger
Basic Usage
<?php use Seasx\SeasLogger\Logger; $logger = new Logger(); // add records to the log $logger->warning('Hello'); $logger->error('SeasLogger');
configuration for laravel/lumen >=5.6
add seaslog configuration in config/logging.php
'channels' => [ ... 'seaslog' => [ 'driver' => 'custom', 'via' => \Seasx\SeasLogger\Logger::class, 'path' => '/path/to/logfile', ], ... ]
edit .env file to use seaslog
LOG_CHANNEL=seaslog
See more
统计信息
- 总下载量: 1.03k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 47
- 点击次数: 1
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2018-04-23