asavenkov / laravel-pachca-logger
Logging to a Pachca in Laravel
v0.2.0
2023-03-25 21:07 UTC
Requires
- php: ~8.0|~8.1|~8.2
- guzzlehttp/guzzle: ^7.0
- illuminate/contracts: ~7.0|~8.0|~9.0|~10.0
- illuminate/queue: ~7.0|~8.0|~9.0|~10.0
- illuminate/support: ~7.0|~8.0|~9.0|~10.0
- monolog/monolog: ~1.12|^2.0|^3.0
This package is not auto-updated.
Last update: 2024-11-17 04:46:43 UTC
README
A Pachca based Monolog driver for Laravel
Install
composer require asavenkov/laravel-pachca-logger
Usage
Add the new driver type in your config/logging.php
configuration
'channels' => [ 'pachca' => [ 'driver' => 'custom', 'via' => SavenkovDev\PachcaLogger\PachcaLogger::class, 'webhook' => env('LOG_PACHCA_WEBHOOK_URL'), 'level' => env('LOG_LEVEL', 'debug'), 'maxDepth' => env('LOG_PACHCA_MAX_DEPTH', 2), ], ],
And add LOG_PACHCA_WEBHOOK_URL
to your .env
file.
Note
You may need to clear cache after installation if you get laravel.EMERGENCY: Unable to create configured logger. ... Log [pachca] is not defined.
with
php artisan config:clear
Contributing
Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.
Make sure to add or update tests as appropriate.
Use Conventional Commits for commit messages.