PHP code example of qlimix / logging-http-logger
1. Go to this page and download the library: Download qlimix/logging-http-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-http-logger example snippets
use Qlimix\Log\Logger\Request\PSRRequestLogger;
$logHandler = new FooBarLogHandler();
$requestLogger = new PSRRequestLogger($logHandler);
$requestLogger->log(new Request());
use Qlimix\Log\Logger\Response\PSRResponseLogger;
$logHandler = new FooBarLogHandler();
$responseLogger = new PSRResponseLogger($logHandler);
$responseLogger->log(new Request());