An effective,fast,stable log package for PHP base SeasLog
This library implements the PSR-3 and PSR-4
Install the latest version with
$ composer require seasx/seas-logger
<?php
use Seasx\SeasLogger\Logger;
$logger = new Logger();
// add records to the log
$logger->warning('Hello');
$logger->error('SeasLogger');
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