的、有效、快速、稳定的 PHP 日志工具**
该库实现了 PSR-3 和 PSR-4
安装最新版本的SeasLogger
$ composer require seasx/seas-logger
<?php use Seasx\SeasLogger\Logger; $logger = new Logger(); // add records to the log $logger->warning('Hello'); $logger->error('SeasLogger');
添加 SeasLogger 配置在 config/logging.php
'channels' => [ ... 'seaslog' => [ 'driver' => 'custom', 'via' => \Seasx\SeasLogger\Logger::class, 'path' => '/path/to/logfile', ], ... ]
修改 .env 文件来使用 seaslog
LOG_CHANNEL=seaslog