ivol / monolog-cli-processor
Allows to log console command
Installs: 617
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 1
Forks: 0
Open Issues: 0
pkg:composer/ivol/monolog-cli-processor
Requires (Dev)
- monolog/monolog: 1.22.*
- phpunit/phpunit: 4.8.*
This package is auto-updated.
Last update: 2025-10-29 02:26:28 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.