docentbf/laravel-pachca-logger

Pachca logger for Laravel

v1.0.0 2023-03-28 13:41 UTC

This package is auto-updated.

Last update: 2025-06-28 18:50:52 UTC


README

Laravel Monolog handler for https://pachca.com

Requirements

  • php 7.3 and above
  • Laravel 8

Install

composer require docentbf/laravel-pachca-logger

Usage

  • Add LOG_PACHCA_WEBHOOK into your .env file.

  • Add config to channels section in configuration file config/logging.php:

'pachca' => [
    'driver'     => 'custom',
    'via'        => \DocentBF\LaravelPachcaLogger\PachcaLogger::class,
    'webhookUrl' => env('LOG_PACHCA_WEBHOOK'),
    'level'      => env('LOG_LEVEL', 'debug')
]