PHPackages                             lukam/monolog-tap - 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. lukam/monolog-tap

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

lukam/monolog-tap
=================

Laravel tap for Monolog processors

1.0.1(7y ago)04MITPHPPHP ^7.1.3

Since Mar 17Pushed 7y ago1 watchersCompare

[ Source](https://github.com/luka-mladenovic/laravel-monolog-processors-tap)[ Packagist](https://packagist.org/packages/lukam/monolog-tap)[ RSS](/packages/lukam-monolog-tap/feed)WikiDiscussions master Synced yesterday

READMEChangelogDependencies (3)Versions (3)Used By (0)

Laravel Monolog processor tap
=============================

[](#laravel-monolog-processor-tap)

**Processor tap** enables you to easily specify Monolog processors which will add information to your log record.

```
Log::info('Hello world!'); // [2019-01-01 12:00:00] local.INFO: Hello world! {"memory_usage":"16 MB","uid":"e44d60c"}
```

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

[](#requirements)

Processor tap works with Laravel versions that support the [logging taps](https://laravel.com/docs/5.6/logging#advanced-monolog-channel-customization) (5.6+) .

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

[](#installation)

```
composer require lukam/monolog-tap

```

Usage
-----

[](#usage)

Simply add the provided `MonologTap\MonologProcessors` tap to a logging channel.

To specify the processors, add a comma-separated list of processor names as the tap attribute.

```
'single' => [
    'driver' => 'single',
    'path' => storage_path('logs/laravel.log'),
    'level' => 'debug',
    'tap' => ['MonologTap\MonologProcessors:uid,memory_usage']
],
```

The processor name is the snake\_name of the Monolog's processor class without the processor suffix. (e.g. `uid` refers to the UidProcessor and `memory_usage` to the MemoryUsageProcessor).

### Supported processors

[](#supported-processors)

ProcessorDescriptiongitInjects Git branch and Git commit SHA in all recordsintrospectionInjects line/file:class/function where the log message came frommemory\_peak\_usageInjects memory\_get\_peak\_usage in all recordsmemory\_usageInjects memory\_get\_usage in all recordsmercurialInjects Hg branch and Hg revision number in all recordsprocess\_idAdds value of getmypid into recordspsr\_log\_messageProcesses a record's message according to PSR-3 rulesuidAdds a unique identifier into recordswebInjects url/method and remote IP of the current web request in all recordsTesting
-------

[](#testing)

```
phpunit

```

License
-------

[](#license)

The MIT License (MIT). See the license file for more information.

###  Health Score

24

—

LowBetter than 32% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity3

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity56

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

Total

2

Last Release

2614d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/c752a22b07b6ab5c54e207d5e25132b15185739860938eb09efcdf76a2ff504c?d=identicon)[luka-mladenovic](/maintainers/luka-mladenovic)

---

Top Contributors

[![luka-mladenovic](https://avatars.githubusercontent.com/u/20473689?v=4)](https://github.com/luka-mladenovic "luka-mladenovic (7 commits)")

---

Tags

laravel-5-packageloggingmonolog

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/lukam-monolog-tap/health.svg)

```
[![Health](https://phpackages.com/badges/lukam-monolog-tap/health.svg)](https://phpackages.com/packages/lukam-monolog-tap)
```

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