imponeer/log-data-output-decorator

Small decorator that extends Symfony OutputInterface delivered class with few options for easier to log data

v2.0.2 2023-10-01 15:39 UTC

This package is auto-updated.

Last update: 2024-10-31 15:42:39 UTC


README

License GitHub release Maintainability PHP Packagist

Log data output decorator

Small decorator that extends Symfony OutputInterface delivered class with few options for easier to log data.

Installation

To install and use this package, we recommend to use Composer:

composer require imponeer/log-data-output-decorator

Otherwise, you need to include manually files from src/ directory.

Usage example

$output = new \Imponeer\Decorators\LogDataOutput\OutputDecorator(
   new \Symfony\Component\Console\Output\BufferedOutput();
);
$output->info('test');
$output->incrIndent();
$output->info('#1');
$output->info('#2');

How to contribute?

If you want to add some functionality or fix bugs, you can fork, change and create pull request. If you not sure how this works, try interactive GitHub tutorial.

If you found any bug or have some questions, use issues tab and write there your questions.