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
Requires
- php: >=7.3
- monolog/monolog: >=2.0
Requires (Dev)
- mockery/mockery: ^1.2
- phpstan/extension-installer: >=1.0
- phpstan/phpstan: >=0.11
- phpstan/phpstan-phpunit: >=0.11
- phpstan/phpstan-strict-rules: >=0.11
- phpunit/phpunit: >=8.0
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);
}));