ivol/monolog-cli-processor

允许记录控制台命令

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

This package is auto-updated.

Last update: 2024-08-29 04:42:56 UTC


README

Build Status

Cli处理器允许在Monolog中记录控制台命令。

安装

将库添加到您的 Composer 项目中

composer require ivol/monolog-cli-processor

用法

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

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

之后,所有cli模式的日志记录都将更新为额外的cli参数。

许可证

exec-wrapper 在MIT许可证下发布。