PHPackages                             glen/console-logger-serviceprovider - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [CLI &amp; Console](/categories/cli)
4. /
5. glen/console-logger-serviceprovider

ActiveLibrary[CLI &amp; Console](/categories/cli)

glen/console-logger-serviceprovider
===================================

Pimple ConsoleLogger ServiceProvider

3.3.0(4y ago)07611MITPHPPHP ^5.3|^7.0|~8.0|~8.1

Since Jan 16Pushed 4y ago1 watchersCompare

[ Source](https://github.com/glensc/ConsoleLoggerServiceProvider)[ Packagist](https://packagist.org/packages/glen/console-logger-serviceprovider)[ RSS](/packages/glen-console-logger-serviceprovider/feed)WikiDiscussions main Synced 3d ago

READMEChangelogDependencies (4)Versions (8)Used By (1)

ConsoleLoggerServiceProvider
============================

[](#consoleloggerserviceprovider)

This service provider makes it easy to show log messages from services in the console, without having to inject an instance of `OutputInterface` into the services. This requires version &gt;=2.4 of Symfony Components. More info about the change is at the [Symfony Blog](http://symfony.com/blog/new-in-symfony-2-4-show-logs-in-console).

In your console application, you can now do something like this:

```
use Symfony\Component\Console\Application;

$app = require 'app.php';
$console = new Application('My Console Application', '1.0');
// You should only register this service provider when running commands
$app->register(new \glen\ConsoleLoggerServiceProvider());

$console->addCommands(
    array(
    //...
    )
);

$console->run($app['console.input'], $app['console.output']);
```

You will still use the normal `OutputInterface` instance for command feedback in your commands, but you will now also get output from anything your services are logging.

The minimum logging level at which this handler will be triggered depends on the verbosity setting of the console output. The default mapping is:

- `OutputInterface::VERBOSITY_NORMAL` will show all `WARNING` and higher logs
- `OutputInterface::VERBOSITY_VERBOSE` (`-v`) will show all `NOTICE` and higher logs
- `OutputInterface::VERBOSITY_VERY_VERBOSE` (`-vv`) will show all `INFO` and higher logs
- `OutputInterface::VERBOSITY_DEBUG` (`-vvv`) will show all DEBUG and higher logs, i.e. all logs

This mapping can be customized with the `logger.console_logger.handler.verbosity_level_map` constructor parameter:

```
$app->register(new ConsoleLoggerServiceProvider(), [
    'logger.console_logger.handler.verbosity_level_map' => array(
        OutputInterface::VERBOSITY_QUIET => Logger::ERROR,
        OutputInterface::VERBOSITY_NORMAL => Logger::INFO,
        OutputInterface::VERBOSITY_VERBOSE => Logger::NOTICE,
        OutputInterface::VERBOSITY_VERY_VERBOSE => Logger::INFO,
        OutputInterface::VERBOSITY_DEBUG => Logger::DEBUG,
    ),
]);
```

###  Health Score

34

—

LowBetter than 77% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity13

Limited adoption so far

Community11

Small or concentrated contributor base

Maturity77

Established project with proven stability

 Bus Factor1

Top contributor holds 92.3% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~247 days

Recently: every ~213 days

Total

7

Last Release

1556d ago

Major Versions

1.0.0 → 2.0.02018-01-29

2.0.0 → 3.0.02019-10-07

PHP version history (2 changes)1.0.0PHP ^5.3.0 || ^7.0

3.3.0PHP ^5.3|^7.0|~8.0|~8.1

### Community

Maintainers

![](https://www.gravatar.com/avatar/9a706718c13a8fc063e8345357c67190c39e1b02b9d0b6d306806fdb7c49bc17?d=identicon)[glen](/maintainers/glen)

---

Top Contributors

[![glensc](https://avatars.githubusercontent.com/u/199095?v=4)](https://github.com/glensc "glensc (24 commits)")[![gunnarlium](https://avatars.githubusercontent.com/u/207556?v=4)](https://github.com/gunnarlium "gunnarlium (2 commits)")

### Embed Badge

![Health badge](/badges/glen-console-logger-serviceprovider/health.svg)

```
[![Health](https://phpackages.com/badges/glen-console-logger-serviceprovider/health.svg)](https://phpackages.com/packages/glen-console-logger-serviceprovider)
```

###  Alternatives

[matomo/matomo

Matomo is the leading Free/Libre open analytics platform

21.4k37.3k](/packages/matomo-matomo)[shopware/platform

The Shopware e-commerce core

3.3k1.5M3](/packages/shopware-platform)[contao/core-bundle

Contao Open Source CMS

1231.6M2.4k](/packages/contao-core-bundle)[shopware/core

Shopware platform is the core for all Shopware ecommerce products.

595.2M386](/packages/shopware-core)[ec-cube/ec-cube

EC-CUBE EC open platform.

78527.0k1](/packages/ec-cube-ec-cube)[jolicode/castor

A lightweight and modern task runner. Automate everything. In PHP.

53541.0k3](/packages/jolicode-castor)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
