dkx/monolog-modifier-handler

This package is abandoned and no longer maintained. No replacement package was suggested.

Modifier handler for monolog

1.0.0 2019-09-26 13:53 UTC

This package is auto-updated.

Last update: 2024-01-26 23:15:57 UTC


README

Modifier handler for monolog

Installation

$ composer require dkx/monolog-modifier-handler

Usage

<?php

use DKX\MonologModifierHandler\ModifierHandler;
use Monolog\Handler\StreamHandler;
use Monolog\Logger;

$handler = new StreamHandler('php://stderr');

$logger = new Logger('default');
$logger->pushHandler(new ModifierHandler($handler, function (array $record) {
    return update_record_somehow($record);
}));