Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/imponeer/log-data-output-decorator
Small decorator that extends @Symfony OutputInterface delivered class with few options for easier to log data
https://github.com/imponeer/log-data-output-decorator
composer-library decorator hacktoberfest symfony-console
Last synced: about 2 months ago
JSON representation
Small decorator that extends @Symfony OutputInterface delivered class with few options for easier to log data
- Host: GitHub
- URL: https://github.com/imponeer/log-data-output-decorator
- Owner: imponeer
- License: mit
- Created: 2021-02-08T23:23:23.000Z (almost 4 years ago)
- Default Branch: main
- Last Pushed: 2024-08-01T15:10:40.000Z (5 months ago)
- Last Synced: 2024-08-01T17:11:14.655Z (5 months ago)
- Topics: composer-library, decorator, hacktoberfest, symfony-console
- Language: PHP
- Homepage:
- Size: 57.6 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
[![License](https://img.shields.io/github/license/imponeer/log-data-output-decorator.svg)](LICENSE)
[![GitHub release](https://img.shields.io/github/release/imponeer/log-data-output-decorator.svg)](https://github.com/imponeer/log-data-output-decorator/releases) [![Maintainability](https://api.codeclimate.com/v1/badges/3e11a2969204f2abc7cf/maintainability)](https://codeclimate.com/github/imponeer/log-data-output-decorator/maintainability) [![PHP](https://img.shields.io/packagist/php-v/imponeer/log-data-output-decorator.svg)](http://php.net)
[![Packagist](https://img.shields.io/packagist/dm/imponeer/log-data-output-decorator.svg)](https://packagist.org/packages/imponeer/log-data-output-decorator)# Log data output decorator
Small decorator that extends [Symfony OutputInterface](https://github.com/symfony/console/blob/5.x/Output/OutputInterface.php) delivered class with few options for easier to log data.
## Installation
To install and use this package, we recommend to use [Composer](https://getcomposer.org):
```bash
composer require imponeer/log-data-output-decorator
```Otherwise, you need to include manually files from `src/` directory.
## Usage example
```php
$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](https://skills.github.com).
If you found any bug or have some questions, use [issues tab](https://github.com/imponeer/log-data-output-decorator/issues) and write there your questions.