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

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

coogle/logger
=============

An Event-driven Logging module for Zend Framework 2

1.0.x-dev(12y ago)2823[1 PRs](https://github.com/coogle/Logger/pulls)BSD-3-ClausePHP

Since Jan 31Pushed 4y ago1 watchersCompare

[ Source](https://github.com/coogle/Logger)[ Packagist](https://packagist.org/packages/coogle/logger)[ Docs](http://www.github.com/coogle/Logger)[ RSS](/packages/coogle-logger/feed)WikiDiscussions master Synced 3d ago

READMEChangelogDependencies (1)Versions (2)Used By (0)

ZF2 Logger Module
=================

[](#zf2-logger-module)

Introduction
------------

[](#introduction)

This is a relatively simple Logger Module for ZF2. It attaches to the 'log' event allowing it to capture logging events from any module that triggers that event.

Configuration
-------------

[](#configuration)

The logger class has the following configuration values available to it under the `logger` key as shown:

```
  array(
	  'logger' => array(
		  'db_adapter' => null,
		  'logger_table' => 'application_log',
		  'priority_filter' => Logger::DEBUG,
		  'log_file' => '/tmp/application.log'
	  )
  );

```

- `db_adapter` is the database adapter to use (i.e. `Zend\Db\Adapter\Adapter` or such) if logging to a database
- `logger_table` is the table we are writing log entries to (schema is in sql/create.sql)
- `priority_filter` the priority to filter against when writing log entries
- `log_file` the file on the local file system to log events to

Usage
-----

[](#usage)

To use the logger, you can trigger a 'log' event, for example as shown below from a class which implements the `ServiceLocatorAwareInterface`:

```
  $eventManager = $this->getServiceLocator()->get('Application')->getEventManager();
  $eventManager->trigger('log', $this, array('message' => "Testing Logging", 'priority' => Logger::ERR));

```

Alternatively, the Logger module comes with a `Logger\LoggerTrait` trait which can be used (provides a `logEvent(, )` method which can be used in any class that provides the `ServiceLocatorAwareInterface`.

###  Health Score

26

—

LowBetter than 43% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity15

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity49

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

Unknown

Total

1

Last Release

4487d ago

### Community

Maintainers

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

---

Top Contributors

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

### Embed Badge

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

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

###  Alternatives

[psr/log

Common interface for logging libraries

10.4k1.2B9.2k](/packages/psr-log)[itsgoingd/clockwork

php dev tools in your browser

5.9k27.6M94](/packages/itsgoingd-clockwork)[graylog2/gelf-php

A php implementation to send log-messages to a GELF compatible backend like Graylog2.

41838.2M138](/packages/graylog2-gelf-php)[bugsnag/bugsnag-psr-logger

Official Bugsnag PHP PSR Logger.

32132.5M2](/packages/bugsnag-bugsnag-psr-logger)[consolidation/log

Improved Psr-3 / Psr\\Log logger based on Symfony Console components.

15462.2M7](/packages/consolidation-log)[datadog/php-datadogstatsd

An extremely simple PHP datadogstatsd client

19124.6M15](/packages/datadog-php-datadogstatsd)

PHPackages © 2026

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