PHPackages                             rsg/log - 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. rsg/log

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

rsg/log
=======

Log utilities for RSG

v0.1.3(5y ago)018.1kproprietaryPHPCI failing

Since Aug 14Pushed 5y ago1 watchersCompare

[ Source](https://github.com/lovullo/rsg-logger)[ Packagist](https://packagist.org/packages/rsg/log)[ RSS](/packages/rsg-log/feed)WikiDiscussions master Synced 1mo ago

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

Description
===========

[](#description)

A collection of logging utilities that can be used by RSG.

Processors
----------

[](#processors)

### StandardProcessor

[](#standardprocessor)

This is the root processor. It does not decorate any other ProcessorInterfaces like the other ones in this library. It is used to add values that all records should contain.

#### Usage

[](#usage)

```
Rsg\Log\StandardProcessor:
    tags: [ 'monolog.processor' ]
    arguments: [ '%env%', 'some-service' ]
```

### WebProcessor

[](#webprocessor)

An adapter for Monolog's WebProcessor. It is used to add "extra" data for web requests. This also decorates any ProcessorInterface.

#### Usage

[](#usage-1)

```
Rsg\Log\StandardProcessor:
    arguments: [ '%env%', 'some-service' ]

Rsg\Log\WebProcessor:
    tags: [ 'monolog.processor' ]
    arguments: [ '@Rsg\Log\StandardProcessor' ]
```

### ContextProcessor

[](#contextprocessor)

Copies important data from the context to the root of the record. This also decorates any ProcessorInterface. The purpose is to allow us to do something like `$logger->info( 'some message', [ 'important_field' => 1 ] );` and be able to search "important\_field=1" in our log aggregator.

#### Usage

[](#usage-2)

```
Rsg\Log\StandardProcessor:
    arguments: [ '%env%', 'some-service' ]

Rsg\Log\ContextProcessor:
    tags: [ 'monolog.processor' ]
    arguments: [ '@Rsg\Log\StandardProcessor' ]
```

Additionally, one can customize the keys that will be copied.

```
Rsg\Log\StandardProcessor:
    arguments: [ '%env%', 'some-service' ]

Rsg\Log\ContextProcessor:
    tags: [ 'monolog.processor' ]
    arguments:
        $processor: '@Rsg\Log\StandardProcessor'
        $keys_to_escalate:
            - foo
            - bar
            - baz
```

Recommended Settings
--------------------

[](#recommended-settings)

The settings recommended for all RSG apps should include:

```
monolog:
    handlers:
        main:
            type: fingers_crossed
            action_level: error
            passthru_level: info
            handler: nested
            formatter: monolog.formatter
```

and

```
monolog.formatter:
    class: 'Monolog\Formatter\JsonFormatter'
```

###  Health Score

30

—

LowBetter than 64% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity24

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity54

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 84.2% 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 ~87 days

Recently: every ~149 days

Total

8

Last Release

1858d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/8a056bd075b81719c7eede21ba9315a4aa807ef8bbbb5bef8318eaa16cc9b32e?d=identicon)[lovullo](/maintainers/lovullo)

---

Top Contributors

[![frazjp65](https://avatars.githubusercontent.com/u/13321887?v=4)](https://github.com/frazjp65 "frazjp65 (16 commits)")[![lodzo](https://avatars.githubusercontent.com/u/2159013?v=4)](https://github.com/lodzo "lodzo (3 commits)")

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/rsg-log/health.svg)

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

###  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)
