PHP code example of bayfrontmedia / multi-logger
1. Go to this page and download the library: Download bayfrontmedia/multi-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/ */
bayfrontmedia / multi-logger example snippets
use Bayfront\MultiLogger\ChannelName;
use Bayfront\MultiLogger\Log;
use Monolog\Logger;
use Monolog\Handler\FirePHPHandler;
$app_channel = new Logger(ChannelName::APP);
$app_channel->pushHandler(new FirePHPHandler());
$log = new Log($app_channel);
use Bayfront\MultiLogger\ChannelName;
use Monolog\Logger;
use Monolog\Handler\FirePHPHandler;
$audit_channel = new Logger(ChannelName::AUDIT);
$audit_channel->pushHandler(new FirePHPHandler());
$log->addChannel($audit_channel);