PHP code example of azay / monolog-multiline-formatter
1. Go to this page and download the library: Download azay/monolog-multiline-formatter 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/ */
azay / monolog-multiline-formatter example snippets
use Monolog\Logger;
use Monolog\Handler\StreamHandler;
use Azay\Monolog\Formatter\MultiLineFormatter;
$logger = new Logger('Multiline');
$handler = new StreamHandler('php://stdout', Logger::DEBUG);
$handler->setFormatter(
new MultiLineFormatter()
);
$logger->pushHandler($handler);