Download the PHP package niels-nijens/enhances-console-logging without Composer
On this page you can find all versions of the php package niels-nijens/enhances-console-logging. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download niels-nijens/enhances-console-logging
More information about niels-nijens/enhances-console-logging
Files in niels-nijens/enhances-console-logging
Package enhances-console-logging
Short Description Components to enhance Symfony console & stdout logging.
License MIT
Informations about the package enhances-console-logging
enhances-console-logging
Components to enhance Symfony console & stdout logging.
Installation using Composer
Run the following command to add the package to the composer.json of your project:
Usage
ProgressBarConsoleLogger
The ProgressBarConsoleLogger
allows you to log and show progress in a console without directly injecting a
ProgressBar
into your domain components handling the progression. Instead, you are able to inject logging into those
components. This allows you to not only log to the console/stdout, but also to other logging mechanisms (eg. a file).
Logging to both a progress bar and another logging mechanism can be achieved by injecting/decorating an existing PSR-3 logger, like Monolog.
The ProgressBarConsoleLogger
adheres to the PSR-3 logging specification and as such implements the Psr\Log\LoggerInterface
.
Testing and code standards
Unit tests can be executed by running the following command:
Code style can be fixed or validated by running one of the following commands:
Security
If you discover any security related issues, please email nijens.niels+security [at] gmail.com instead of using the issue tracker.
Credits
License
This package is licensed under the MIT License. Please see the LICENSE file for more information.