ivol / monolog-cli-processor
Allows to log console command
v1.0.1
2017-01-28 15:36 UTC
Requires (Dev)
- monolog/monolog: 1.22.*
- phpunit/phpunit: 4.8.*
This package is auto-updated.
Last update: 2024-10-29 05:04:50 UTC
README
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.