PHPackages                             phrity/logger-console - 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. phrity/logger-console

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

phrity/logger-console
=====================

1.0.1(5mo ago)01.1k↓40%1MITPHPPHP ^8.1CI passing

Since Aug 26Pushed 5mo agoCompare

[ Source](https://github.com/sirn-se/phrity-logger-console)[ Packagist](https://packagist.org/packages/phrity/logger-console)[ Docs](https://phrity.sirn.se/logger-console)[ RSS](/packages/phrity-logger-console/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (2)Dependencies (8)Versions (3)Used By (1)

[![Phrity Logger Console](docs/logotype.png)](docs/logotype.png)

[![Build Status](https://github.com/sirn-se/phrity-logger-console/actions/workflows/acceptance.yml/badge.svg)](https://github.com/sirn-se/phrity-logger-console/actions)

Phrity Logger Console
=====================

[](#phrity-logger-console)

A [PSR-3](https://www.php-fig.org/psr/psr-3/) compatible console logger. Useful when running local tests and various console applications.

Installation
------------

[](#installation)

Install with [Composer](https://getcomposer.org/);

```
composer require phrity/logger-console

```

Verbosity
---------

[](#verbosity)

Verbosity level can be set on the logger.

```
use Phrity\Logger\Console\{
    ConsoleLogger,
    Verbosity,
};
$logger = new ConsoleLogger(verbosity: Verbosity::Verbose);
```

Available levels (default: `Verbosity::Normal`);

- `Verbosity::Quiet`
- `Verbosity::Normal`
- `Verbosity::Verbose`
- `Verbosity::VeryVerbose`
- `Verbosity::Debug`

Output format
-------------

[](#output-format)

Output format can be specified using string with replacers.

```
use Phrity\Logger\Console\ConsoleLogger;
$logger = new ConsoleLogger(format: '{datetime} {level} {message} - {context}');
```

Available replacers;

- `datetime` - ISO datetime string
- `level` - Log level string
- `message` - Log message (interpolated)
- `context` - String representation of context data

Default format is `'{datetime} [{level}] {message}'`.

CLI options
-----------

[](#cli-options)

By enabling CLI options, verbosity can be set as console argument.

```
use Phrity\Logger\Console\ConsoleLogger;
$logger = new ConsoleLogger(cliOptions: true);
```

Available verbosity argument;

- `--quiet` -q
- `--verbose=1` `-v`
- `--verbose=2` `-vv`
- `--verbose=3` `-vvv` `--debug`

Versions
--------

[](#versions)

VersionPHP`1.0``^8.1`Initial version

###  Health Score

38

—

LowBetter than 85% of packages

Maintenance71

Regular maintenance activity

Popularity17

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity45

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% 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 ~100 days

Total

2

Last Release

165d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/4255391?v=4)[Sören Jensen](/maintainers/sirn-se)[@sirn-se](https://github.com/sirn-se)

---

Top Contributors

[![sirn-se](https://avatars.githubusercontent.com/u/4255391?v=4)](https://github.com/sirn-se "sirn-se (4 commits)")

---

Tags

consoleloggerphpphp-librarypsr-3

###  Code Quality

TestsPHPUnit

Static AnalysisPHPStan

Code StylePHP\_CodeSniffer

Type Coverage Yes

### Embed Badge

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

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

###  Alternatives

[crunzphp/crunz

Schedule your tasks right from the code.

2292.0M6](/packages/crunzphp-crunz)[chi-teck/drupal-code-generator

Drupal code generator

26947.8M5](/packages/chi-teck-drupal-code-generator)[matthiasnoback/symfony-console-form

Use Symfony forms for Console command input

368264.8k8](/packages/matthiasnoback-symfony-console-form)[civicrm/cv

CLI tool for CiviCRM

4219.8k](/packages/civicrm-cv)[aedart/athenaeum

Athenaeum is a mono repository; a collection of various PHP packages

245.2k](/packages/aedart-athenaeum)[shel/neos-terminal

Neos CMS Ui terminal for running Eel expressions and other commands

1441.3k](/packages/shel-neos-terminal)

PHPackages © 2026

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