n5s/monolog-ray-handler

Monolog handler for Ray

1.0.0 2024-07-05 14:26 UTC

This package is auto-updated.

Last update: 2024-12-05 15:26:33 UTC


README

A Monolog handler for Ray

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]);