PHP code example of xraffsarr / php-logger
1. Go to this page and download the library: Download xraffsarr/php-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/ */
xraffsarr / php-logger example snippets
use PhpLogger\Facade\Log;
Log::setLogPath('[pathToSave]');
use PhpLogger\Facade\Log;
use PhpLogger\LoggerType;
Log::setLogType(LoggerType::JSON_WRITER);
use PhpLogger\Facade\Log;
Log::debug('Debug log', [
'data' => [
...
]
]);
bash
composer