PHPackages                             aqilix/zf3-psr3-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. [Logging &amp; Monitoring](/categories/logging)
4. /
5. aqilix/zf3-psr3-logger

ActiveLibrary[Logging &amp; Monitoring](/categories/logging)

aqilix/zf3-psr3-logger
======================

PSR3 Logger for ZF3 and ZF2 Application

0.0.2(8y ago)0462BSD-3-ClausePHPPHP ^5.6 || ^7.0

Since Apr 15Pushed 8y ago2 watchersCompare

[ Source](https://github.com/aqilix/zf3-psr3-logger)[ Packagist](https://packagist.org/packages/aqilix/zf3-psr3-logger)[ Docs](https://aqilix.com)[ RSS](/packages/aqilix-zf3-psr3-logger/feed)WikiDiscussions master Synced yesterday

READMEChangelogDependencies (9)Versions (4)Used By (0)

PSR3 Logger For ZF3 and ZF2 Application
=======================================

[](#psr3-logger-for-zf3-and-zf2-application)

This is a simple module for loading **logger** using `PSR3` to your ZF3/ZF2 application. By default the **logger** will write to a file (`data/log/system.log`). But you can override the logger configuration by override **logger** in `autoload/*.local.php`. By using this module you don't need to write `delegators` to modify the **logger** from `Zend\Log`.

### Installation

[](#installation)

Add `zf3-psr3-logger` to `composer.json`

```
composer require aqilix/zf3-psr3-logger

```

Add `Aqilix\\ZF3PSR3Logger` to `config/modules.config.php`

### Usage

[](#usage)

Inject `psr3_logger` service into class that wanna use **logger**. If using `factories` we can do it like this

```
public function __invoke(ContainerInterface $container, $requestedName, array $options = null)
{
    $example = new Example();
    $example->setLogger($container->get("psr3_logger"));
    return $example;
}

```

And here the `Example` class

```
class Example
{
    use Psr\Log\LoggerAwareTrait;

    public function test()
    {
        $this->logger->log(\Psr\Log\LogLevel::INFO, "{function} Testing logger", ["function" => __FUNCTION__]);
        $this->logger->log(\Psr\Log\LogLevel::ERROR, "{function} Testing logger", ["function" => __FUNCTION__]);
    }
}

```

###  Health Score

24

—

LowBetter than 31% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity9

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity50

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

Total

2

Last Release

3240d ago

### Community

Maintainers

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

---

Top Contributors

[![dollyaswin](https://avatars.githubusercontent.com/u/107206?v=4)](https://github.com/dollyaswin "dollyaswin (20 commits)")

---

Tags

loggerzf2PSR3zf3

###  Code Quality

TestsPHPUnit

Code StylePHP\_CodeSniffer

### Embed Badge

![Health badge](/badges/aqilix-zf3-psr3-logger/health.svg)

```
[![Health](https://phpackages.com/badges/aqilix-zf3-psr3-logger/health.svg)](https://phpackages.com/packages/aqilix-zf3-psr3-logger)
```

###  Alternatives

[davidhavl/dherrorlogging

Full featured error logging module for ZF2/ZF3 application

1924.6k](/packages/davidhavl-dherrorlogging)[analog/analog

Fast, flexible, easy PSR-3-compatible PHP logging package with dozens of handlers.

3511.6M24](/packages/analog-analog)[snapshotpl/zf-snap-php-debug-bar

PHP Debug Bar module for Zend Framework 2

3026.1k](/packages/snapshotpl-zf-snap-php-debug-bar)[devthis/console-logg

Effortless artisan console output with your usual Laravel logger

1113.6k](/packages/devthis-console-logg)

PHPackages © 2026

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