noxomix/operational-monolog

A Monolog handler for operational.co

v0.0.1 2025-05-16 15:32 UTC

This package is auto-updated.

Last update: 2025-05-16 15:43:33 UTC


README

A PSR-compliant Monolog handler that sends logs to Operational.co via HTTP API.

⚠️ This project is neither officially supported by nor affiliated with Operational.co.
Compatibility has only been tested with PHP 8.1+ and Monolog 3.

📦 Installation

Install via Composer:

composer require noxomix/operational-monolog

🚀 Example usage:

use Monolog\Logger;
use Noxomix\OperationalMonolog\OperationalHandler;

$logger = new Logger('operational');

$handler = new OperationalHandler('your-api-key-here');
$logger->pushHandler($handler);

$logger->info('User signup', ["name" => "Alfredo", "email" => "test@test.test"]);