PHPackages                             frank-houweling/zend-log-doctrine-writer - 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. [Database &amp; ORM](/categories/database)
4. /
5. frank-houweling/zend-log-doctrine-writer

ActiveLibrary[Database &amp; ORM](/categories/database)

frank-houweling/zend-log-doctrine-writer
========================================

Doctrine Writer for Zend Log

1.2(7y ago)015.8kGPL-2.0PHPPHP ^7.0

Since Aug 9Pushed 7y ago1 watchersCompare

[ Source](https://github.com/FrankHouweling/zend-log-doctrine-writer)[ Packagist](https://packagist.org/packages/frank-houweling/zend-log-doctrine-writer)[ Docs](http://www.senet.nl/)[ RSS](/packages/frank-houweling-zend-log-doctrine-writer/feed)WikiDiscussions master Synced 3w ago

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

Doctrine Writer for Zend Log
============================

[](#doctrine-writer-for-zend-log)

This writer writes log messages to a given doctrine object.

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

[](#installation)

Use composer to install this module.

```
composer require frank-houweling/zend-log-doctrine-writer
```

After composer installation, make sure that the \\FrankHouweling\\ZendLogDoctrineWriter module is added to the module configuration. In most cases, the module configuration can be found in `config/module.config.php`

Usage
-----

[](#usage)

The Doctrine Writer can be used as any Zend Log Writer. It requires an instance of the Doctrine EntityManager, and a valid log entity classname. The log messages will be stored in the given entity, so make sure it is registered to the doctrine entitymanager.

The writer can be used as follows:

```
$em = $container->get(EntityManager::class);
$doctrineWriter = new DoctrineWriter($em, LogMessage::class);

$logger = new Logger();
$logger->addWriter($doctrineWriter);
```

A mapping can be given as a third parameter, to change the attributes in which log data is stored.

Example mapping:

```
$mapping = [
    'message' => 'msg'
];

$em = $container->get(EntityManager::class);
$doctrineWriter = new DoctrineWriter($em, LogMessage::class, $mapping);

$logger = new Logger();
$logger->addWriter($doctrineWriter);
```

A basic entity that can be used for logging can be found in the src/Entity folder of the library.

###  Health Score

30

—

LowBetter than 62% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity19

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity60

Established project with proven stability

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

Total

3

Last Release

2616d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/42c315e5352f108b29dba2668493c5a3212d5fd3fa01f5fc2b4767894492be2c?d=identicon)[FrankHouweling](/maintainers/FrankHouweling)

---

Top Contributors

[![FrankHouweling](https://avatars.githubusercontent.com/u/1426973?v=4)](https://github.com/FrankHouweling "FrankHouweling (8 commits)")

---

Tags

doctrinedoctrine-ormloggingzend-frameworkzend-logloggingdoctrinezendloggerZend Frameworkzf3zend log

### Embed Badge

![Health badge](/badges/frank-houweling-zend-log-doctrine-writer/health.svg)

```
[![Health](https://phpackages.com/badges/frank-houweling-zend-log-doctrine-writer/health.svg)](https://phpackages.com/packages/frank-houweling-zend-log-doctrine-writer)
```

###  Alternatives

[samsonasik/error-hero-module

A Hero for your Laminas and Mezzio application to trap php errors &amp; exceptions

5233.6k1](/packages/samsonasik-error-hero-module)[stefano/stefano-tree

Nested Set(MPTT) implementation for PHP

2791.4k](/packages/stefano-stefano-tree)[zfc-datagrid/zfc-datagrid

Laminas Module that provides a datagrid for different datasources and output formats

1224.9k](/packages/zfc-datagrid-zfc-datagrid)

PHPackages © 2026

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