azagoru/laravel-pachca-logging

Logging to a Pachca in Laravel

dev-main 2024-06-05 18:34 UTC

This package is auto-updated.

Last update: 2025-07-05 21:13:10 UTC


README

A Pachca based Monolog driver for Laravel

Latest Stable Version Total Downloads License

Install

composer require azagoru/laravel-pachca-logging

Usage

Add the new driver type in your config/logging.php configuration

'channels' => [
    'pachca' => [
        'driver' => 'custom',
        'via' => Azagoru\PachcaLogging\PachcaLogger::class,
        'webhook' => env('LOG_PACHCA_WEBHOOK_URL'),
        'level' => env('LOG_LEVEL', 'debug'),
        'name' => env('APP_NAME') ,
        'maxDepth' => env('LOG_PACHCA_MAX_DEPTH', 2),
        'withTrace' => true,
        'withTraceMarkup' => true,
        'withTraceVendorLines' => true,
    ],
],

And add LOG_PACHCA_WEBHOOK_URL to your .env file.

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.

License

MIT