PHP code example of depa / middleware-logger
1. Go to this page and download the library: Download depa/middleware-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/ */
depa / middleware-logger example snippets
$app->pipe(\Depa\MiddlewareLogger\LoggerMiddleware::class);
return [
'logger' => [
'writer' => 'ChromePhp',//Null, ChromePhp, FirePhp
],
];
use Depa\MiddlewareLogger\Logger;
Logger::alert('Text');
Logger::warning('Text');
Logger::notice('Text');
Logger::info('Text');
Logger::debug('Text');
Logger::time();