PHP code example of seasx / seas-logger
1. Go to this page and download the library: Download seasx/seas-logger library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
seasx / seas-logger example snippets
use Seasx\SeasLogger\Logger;
$logger = new Logger();
// add records to the log
$logger->warning('Hello');
$logger->error('SeasLogger');
'channels' => [
...
'seaslog' => [
'driver' => 'custom',
'via' => \Seasx\SeasLogger\Logger::class,
'path' => '/path/to/logfile',
],
...
]
LOG_CHANNEL=seaslog