PHP code example of adosaiguas / slim-analog
1. Go to this page and download the library: Download adosaiguas/slim-analog 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/ */
adosaiguas / slim-analog example snippets
$logger = new \Adosaiguas\SlimAnalog\Log\AnalogWriter(
\Analog\Handler\Threshold::init (
\Analog\Handler\File::init ($log_path),
\Analog::DEBUG
)
);
$app = new \Slim\Slim(array(
'log.writer' => $logger,
));