PHP code example of teachiq / laravel-command-logger
1. Go to this page and download the library: Download teachiq/laravel-command-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/ */
teachiq / laravel-command-logger example snippets
return [
// The log channel where the logs are written
'channel' => [
'driver' => 'single',
'path' => storage_path('logs/command.log'),
'level' => 'debug',
],
// Specify any specific commands that should be excluded from logging
'exclude' => [
'config:cache',
'route:cache',
],
// Exeuctions longer than this value (in seconds) will be marked with __SLOW__ in the log
'slow' => 5,
];