PHP code example of qlimix / logging-exception-handler
1. Go to this page and download the library: Download qlimix/logging-exception-handler 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/ */
qlimix / logging-exception-handler example snippets
use Qlimix\Log\Logger\Exception\ExceptionLogger;
use Exception;
$logHandler = new FileLogHandler();
$logger = new ExceptionLogger($logHandler);
$logger->emergency('foo', new Exception());
$logger->critical('foo', new Exception());
$logger->alert('foo', new Exception());
$logger->error('foo', new Exception());
$logger->debug('foo', new Exception());