Skip to content

ivol84/monolog-console-args

Repository files navigation

monolog-cli-processor

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.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages