Useful class to customize log messages in Laravel following Amtega (Xunta de Galicia) standards.
You can install the package via composer:
composer require xanpena/amtega-loggingChange the formatter in channels configuration of your config/logging.php file:
'single' => [
'driver' => 'single',
'path' => storage_path('logs/laravel.log'),
'level' => env('LOG_LEVEL', 'debug'),
],
'daily' => [
'driver' => 'daily',
'tap' => [Xanpena\AmtegaLogging\AmtegaFormatter::class],
'path' => storage_path('logs/laravel-daily.log'),
'level' => env('LOG_LEVEL', 'debug'),
'days' => 14,
],Please see CONTRIBUTING for details.
If you discover any security related issues, please using the issue tracker.