ivol/monolog-cli-processor

Allows to log console command

v1.0.1 2017-01-28 15:36 UTC

This package is auto-updated.

Last update: 2024-04-29 03:47:02 UTC


README

Build Status

Cli processor allows to log console command in Monolog.

Installation

Add library to your Composer project:

composer require ivol/monolog-cli-processor

Usage

<php>
// Autoload here
use Monolog\Logger;
use ivol\Monolog\Processor\CliProcessor;

$handlers = []; // Add handlers
$logger = new Logger('Logger_Name', $handlers, [new CliProcessor()]);
</php>

After that all log records in cli mode will be updated with extra cli arg.

License

exec-wrapper is released under the MIT License.