PHPackages                             interactive-solutions/zf-log-handler - 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. interactive-solutions/zf-log-handler

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

interactive-solutions/zf-log-handler
====================================

Interactive Solutions log handler

1.0.0(7y ago)059[3 issues](https://github.com/interactive-solutions/zf-log-handler/issues)MITPHPPHP ^7.0.0

Since May 30Pushed 7y ago2 watchersCompare

[ Source](https://github.com/interactive-solutions/zf-log-handler)[ Packagist](https://packagist.org/packages/interactive-solutions/zf-log-handler)[ RSS](/packages/interactive-solutions-zf-log-handler/feed)WikiDiscussions master Synced today

READMEChangelog (2)Dependencies (1)Versions (11)Used By (0)

zf-log-handler
==============

[](#zf-log-handler)

Utility library to log exception (with stacktrace) and requests/response details to configured adapters.

Request duration
----------------

[](#request-duration)

The duration will be part of the data sent to each adapter if the constant `START_TIME` is defined. If you wish to log the duration you should `define('START_TIME', microtime(true))`before the application is bootstrapped.

Adapters
--------

[](#adapters)

All adapters must implement the `AdapterInterface`, the only provided adapter built into this library is `ElasticsearchAdapter` which logs data to elasticsearch.

Options
-------

[](#options)

### `LogHandlerOptions`

[](#loghandleroptions)

Handles general configuration of this library.

Example config below:

```
LogHandlerOptions::class => [
    'environment'     => 'dev',
    'debug'           => true,
    'adapters'        => [
        ElasticsearchAdapter::class,
    ],
    'alwaysLogRoutes' => [],
],
```

- `environment` is a string that will be added to the data array being logged, useful for easy filtering if logs contains data from several environments
- `debug` if set to true will log each incoming request and its corresponding response, if set to false it will disable logging of requests/responses
- `adapters` list of adapters implementing the `AdapterInterface`, each adapter's `write`method with all data to be logged
- `alwaysLogRoutes` list of route names whose request and corresponding response that should *always* be logged (event if `debug` is set to false)

### `ElasticsearchOptions`

[](#elasticsearchoptions)

Handles configuration for the `ElasticsearchAdapter`.

Example config below:

```
ElasticsearchOptions::class => [
    'host'     => 'localhost,
    'port'     => ,
    'username' => '',
    'password' => '',
    'prefix'   => 'project-name',
],
```

- `host` the elasticsearch host
- `port` port of the elasticsearch host
- `username` username to log onto elasticsearch
- `password` password to log onto elasticsearch
- `prefix` the prefix of the index in elasticsearch where data should be logged

###  Health Score

28

—

LowBetter than 52% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity8

Limited adoption so far

Community11

Small or concentrated contributor base

Maturity64

Established project with proven stability

 Bus Factor1

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

Recently: every ~162 days

Total

10

Last Release

2667d ago

Major Versions

0.0.9 → 1.0.02019-03-12

### Community

Maintainers

![](https://www.gravatar.com/avatar/825f7193bec88275f660c65faab1790ed620948f5dd7a6c96515d1f12609127d?d=identicon)[mac\_nibblet](/maintainers/mac_nibblet)

---

Top Contributors

[![noggan](https://avatars.githubusercontent.com/u/7058221?v=4)](https://github.com/noggan "noggan (26 commits)")[![Hotas2k](https://avatars.githubusercontent.com/u/1724484?v=4)](https://github.com/Hotas2k "Hotas2k (4 commits)")[![awartoft](https://avatars.githubusercontent.com/u/1127626?v=4)](https://github.com/awartoft "awartoft (2 commits)")

### Embed Badge

![Health badge](/badges/interactive-solutions-zf-log-handler/health.svg)

```
[![Health](https://phpackages.com/badges/interactive-solutions-zf-log-handler/health.svg)](https://phpackages.com/packages/interactive-solutions-zf-log-handler)
```

###  Alternatives

[psr/log

Common interface for logging libraries

10.4k1.2B10.9k](/packages/psr-log)[open-telemetry/api

API for OpenTelemetry PHP.

1938.5M262](/packages/open-telemetry-api)[open-telemetry/sdk

SDK for OpenTelemetry PHP.

2326.5M315](/packages/open-telemetry-sdk)

PHPackages © 2026

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