PHP code example of kucera / monolog-extensions
1. Go to this page and download the library: Download kucera/monolog-extensions 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/ */
kucera / monolog-extensions example snippets
use Kucera\Monolog\BlueScreenFactory;
use Kucera\Monolog\BlueScreenHandler;
use Monolog\Logger;
$logger = new Monolog\Logger('channel');
$logDirectory = __DIR__ . '/log';
$logger->pushHandler(new BlueScreenHandler(
Factory::blueScreen(),
$logDirectory,
Logger::DEBUG,
$bubble = TRUE
));
$logger->critical('Exception occured!', array(
'exception' => new Exception(),
));