n5s / monolog-ray-handler
Monolog handler for Ray
1.0.0
2024-07-05 14:26 UTC
Requires
- php: >=8.1
- monolog/monolog: ^2 || ^3
- spatie/ray: ^1
Requires (Dev)
- phpstan/phpstan: ^1.10
- phpunit/phpunit: ^9.6.7
README
Install
composer require n5s/monolog-ray-handler
Usage
<?php use Monolog\Level; use Monolog\Logger; use n5s\MonologRayHandler\RayHandler; $logger = new Logger('ray-channel'); $logger->pushHandler(new RayHandler(Level::Warning)); // Add records to the log $logger->debug('Foo'); $logger->error('Bar'); $logger->critical('Logger', ['logger' => $logger]);