xanpena / amtega-logging
Useful class to customize log messages in Laravel following Amtega (Xunta de Galicia) standards.
1.0
2023-01-25 11:59 UTC
Requires
- php: ^7.2|^8.0
- illuminate/auth: ^6.0|^7.0|^8.0|^9.0
- illuminate/log: ^6.0|^7.0|^8.0|^9.0
- monolog/monolog: ^2.0
README
Useful class to customize log messages in Laravel following Amtega (Xunta de Galicia) standards.
Installation
You can install the package via composer:
composer require xanpena/amtega-logging
Change 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, ],
Contributing
Please see CONTRIBUTING for details.
Security
If you discover any security related issues, please using the issue tracker.