PHP code example of qlimix / logging-message-logger
1. Go to this page and download the library: Download qlimix/logging-message-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/ */
qlimix / logging-message-logger example snippets
use Qlimix\Logging\Logger\Message\SerializableMessageLogger;
use Exception;
$logHandler = new FooBarLogHandler();
$logger = new SerializableMessageLogger($logHandler);
$logger->start($message);
$logger->success($message);
$logger->failed($message, new Exception());
$logger->critical($message, new Exception());