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

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

everon/logger
=============

PSR-3 compliant logger with pluggable architecture and unified, shareable configuration based on Monolog

3.0.7(2y ago)01243MITPHPPHP &gt;=8.1

Since Nov 16Pushed 2y ago1 watchersCompare

[ Source](https://github.com/oliwierptak/everon-logger)[ Packagist](https://packagist.org/packages/everon/logger)[ RSS](/packages/everon-logger/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (10)Dependencies (6)Versions (16)Used By (3)

EveronLogger
============

[](#everonlogger)

[![Build and run tests](https://github.com/oliwierptak/everon-logger/actions/workflows/main.yml/badge.svg)](https://github.com/oliwierptak/everon-logger/actions/workflows/main.yml)

Monolog based, PSR-3 compliant logger, with pluggable architecture and simple configuration.

Features
--------

[](#features)

- Pluggable architecture, semantically versioned
- Simple setup, with autocompletion
- One unified configuration schema
- Plugins can be grouped into sets to easily create customized and very specific loggers instances
- Monolog's handlers and processors constructors details and dependencies are never exposed
- Based on [Monolog v3.x](https://github.com/Seldaek/monolog)

#### Simple Usage

[](#simple-usage)

Log everything at level `info` and above to `/tmp/example.log`.

```
$streamPluginConfigurator = (new StreamLoggerPluginConfigurator)
    ->setLogLevel('info')
    ->setStreamLocation('/tmp/example.log');

$configurator = (new LoggerConfigurator)
    ->add($streamPluginConfigurator);

$logger = (new EveronLoggerFacade)->buildLogger($configurator);

$logger->info('lorem ipsum');
```

Content of `/tmp/example.log`.

```
[2020-11-15T16:29:16.400318+00:00] everon-logger.INFO: lorem ipsum [] []

```

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

[](#configuration)

The configuration is done by [simple data structures](https://github.com/oliwierptak/popo/) called `configurators`. Each plugin configurator has its plugin specific settings.

For example, to use syslog and file logging, setup the `StreamLoggerPluginConfigurator`and `SyslogLoggerPluginConfigurator`.

```
$configurator = (new LoggerConfigurator)
    ->add(
        (new StreamLoggerPluginConfigurator)
            ->setLogLevel('debug')
            ->setStreamLocation('/tmp/example.log')
    )->add(
        (new SyslogLoggerPluginConfigurator)
            ->setLogLevel('info')
            ->setIdent('everon-logger-ident'));
```

### Logger Handler / Plugin

[](#logger-handler--plugin)

A logger plugin is used to create and configure corresponding Monolog's handler.

Besides `LoggerPluginInterface` a plugin can also implement `PluginFormatterInterface`, in which case the custom formatter provided by the plugin will be used.

### Setup with LoggerConfigurator

[](#setup-with-loggerconfigurator)

To set up a plugin with given handler, add it to the collection in `LoggerConfigurator` with `add()`.

For example, setup logging to a redis server and enable memory usage processor.

```
$redisPluginConfigurator = new RedisLoggerPluginConfigurator;
$redisPluginConfigurator
    ->setLogLevel('info')
    ->setKey('redis-queue-test')
    ->requireRedisConnection()
        ->setHost('redis.host')
        ->setTimeout(10);

$configurator = (new LoggerConfigurator)
    ->setName('everon-logger-example')
    ->add($redisPluginConfigurator)
    ->addProcessor(MemoryUsageProcessor::class);

$logger = (new EveronLoggerFacade)->buildLogger($configurator);

$logger->info('lorem ipsum');
```

Content of `redis-queue-test` in redis.

```
[2020-11-15T16:39:12.495319+00:00] everon-logger.INFO: lorem ipsum [] {"memory_usage":"6 MB"}

```

Logger processors
-----------------

[](#logger-processors)

Add required processor classes to logger configurator with `addProcessor()`.

```
$configurator = (new LoggerConfigurator)
    ->addProcessor(MemoryUsageProcessor::class)
    ->addProcessor(HostnameProcessor::class)
    ->addProcessor(...)
    ...
```

Plugins
-------

[](#plugins)

### Basic

[](#basic)

Set of plugins that require no extra vendor dependencies.

```
composer require everon/logger-basic

```

[Repository](https://github.com/oliwierptak/everon-logger-basic)

### Gelf

[](#gelf)

Set of plugins for Graylog2 handlers.

```
composer require everon/logger-gelf

```

[Repository](https://github.com/oliwierptak/everon-logger-gelf)

### Redis

[](#redis)

Set of plugins for Redis handler.

[Repository](https://github.com/oliwierptak/everon-logger-redis)

```
composer require everon/logger-redis

```

Requirements
------------

[](#requirements)

- PHP v8.1.x
- [Monolog v3.x](https://github.com/Seldaek/monolog)

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

[](#installation)

```
composer require everon/logger

```

*Note:* You only need to install this package if you want to develop a plugin for `EveronLogger`. Otherwise, install specific plugins. See above.

###  Health Score

31

—

LowBetter than 68% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity11

Limited adoption so far

Community12

Small or concentrated contributor base

Maturity70

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

Recently: every ~0 days

Total

14

Last Release

1018d ago

Major Versions

1.0.0 → 2.0.02021-05-18

2.0.0 → 3.0.02023-08-02

PHP version history (3 changes)1.0.0-rc1PHP ^7.4

2.0.0PHP ^8

3.0.0PHP &gt;=8.1

### Community

Maintainers

![](https://www.gravatar.com/avatar/73a4cc056d2b09189dda46d01b76e71161dd9b75a226230bed6bec8f414d1cf8?d=identicon)[oliwierptak](/maintainers/oliwierptak)

---

Top Contributors

[![oliwierptak](https://avatars.githubusercontent.com/u/495101?v=4)](https://github.com/oliwierptak "oliwierptak (103 commits)")

---

Tags

loggermonologpluginssemantic-versioning

###  Code Quality

TestsPHPUnit

Static AnalysisPHPStan

Type Coverage Yes

### Embed Badge

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

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

###  Alternatives

[symfony/monolog-bridge

Provides integration for Monolog with various Symfony components

2.6k189.7M258](/packages/symfony-monolog-bridge)[rollbar/rollbar

Monitors errors and exceptions and reports them to Rollbar

33723.7M82](/packages/rollbar-rollbar)[illuminate/log

The Illuminate Log package.

6224.3M518](/packages/illuminate-log)[honeybadger-io/honeybadger-php

Honeybadger PHP library

381.5M4](/packages/honeybadger-io-honeybadger-php)[graycore/magento2-stdlogging

A Magento 2 module that changes all logging handlers to stdout

2382.6k](/packages/graycore-magento2-stdlogging)

PHPackages © 2026

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