PHPackages                             benycode/doctrine-psr-logger - 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. benycode/doctrine-psr-logger

ActiveLibrary

benycode/doctrine-psr-logger
============================

Psr logger meets Doctrine

v1.0.1(3y ago)013MITPHPPHP &gt;= 5.3.0

Since Sep 10Pushed 3y ago1 watchersCompare

[ Source](https://github.com/benycode/doctrine-psr-logger)[ Packagist](https://packagist.org/packages/benycode/doctrine-psr-logger)[ RSS](/packages/benycode-doctrine-psr-logger/feed)WikiDiscussions main Synced 4w ago

READMEChangelog (2)Dependencies (2)Versions (3)Used By (0)

PSR logger meets Doctrine
=========================

[](#psr-logger-meets-doctrine)

Log doctrine logs any where with PSR loggers.

Table of contents
-----------------

[](#table-of-contents)

- [Install](#install)
- [Usage](#usage)

Install
-------

[](#install)

Via Composer

```
$ composer require benycode/doctrine-psr-logger
```

Usage
-----

[](#usage)

Then you are setting up Doctrine EntityManager setup logger (in an example i'm using DI):

```
EntityManager::class => static function (ContainerInterface $container): EntityManager {
  ...

  $logger = .....
    ->addFileHandler('database.log')
    ->createLogger()
  ;

  $config
    ->setSQLLogger(new \BenyCode\DoctrinePsrLogger\PsrSqlLogger($logger))
  ;

  return EntityManager::create($settings['db'], $config);
},
```

###  Health Score

20

—

LowBetter than 14% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity5

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity43

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 ~0 days

Total

2

Last Release

1337d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/cb3e8d371d500a222cf7d259a737b7de87389296eb9584360f9a68c594d2a2dc?d=identicon)[benycode](/maintainers/benycode)

---

Top Contributors

[![benycode](https://avatars.githubusercontent.com/u/39025147?v=4)](https://github.com/benycode "benycode (6 commits)")

### Embed Badge

![Health badge](/badges/benycode-doctrine-psr-logger/health.svg)

```
[![Health](https://phpackages.com/badges/benycode-doctrine-psr-logger/health.svg)](https://phpackages.com/packages/benycode-doctrine-psr-logger)
```

###  Alternatives

[sylius/sylius

E-Commerce platform for PHP, based on Symfony framework.

8.4k5.6M647](/packages/sylius-sylius)[sulu/sulu

Core framework that implements the functionality of the Sulu content management system

1.3k1.3M152](/packages/sulu-sulu)[contao/core-bundle

Contao Open Source CMS

1231.6M2.3k](/packages/contao-core-bundle)[neos/flow

Flow Application Framework

862.0M449](/packages/neos-flow)[neos/flow-development-collection

Flow packages in a joined repository for pull requests.

144179.3k3](/packages/neos-flow-development-collection)[hostnet/entity-tracker-component

Provides an event when a Tracked entity changes

16158.1k4](/packages/hostnet-entity-tracker-component)

PHPackages © 2026

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