PHPackages                             healthengine/laravel-logging - 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. healthengine/laravel-logging

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

healthengine/laravel-logging
============================

logging stack for Laravel

v5.0.0(9mo ago)370.9k↑180%6[1 issues](https://github.com/HealthEngineAU/laravel-logging/issues)MITPHPPHP ~8.2.0 || ~8.3.0

Since Apr 7Pushed 9mo ago5 watchersCompare

[ Source](https://github.com/HealthEngineAU/laravel-logging)[ Packagist](https://packagist.org/packages/healthengine/laravel-logging)[ RSS](/packages/healthengine-laravel-logging/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (10)DependenciesVersions (25)Used By (0)

Laravel Logging
===============

[](#laravel-logging)

[![Latest Stable Version](https://camo.githubusercontent.com/e820a3f16caa2e6da9cfa26695098deed32427639be44894cd748ecf3f29f2bc/68747470733a2f2f706f7365722e707567782e6f72672f6865616c7468656e67696e652f6c61726176656c2d6c6f6767696e672f76657273696f6e)](https://packagist.org/packages/healthengine/laravel-logging)[![Total Downloads](https://camo.githubusercontent.com/76ac8826442ccf99ead64d479f1a020c8fbf09b7c278e0aeddf611575e2b11eb/68747470733a2f2f706f7365722e707567782e6f72672f6865616c7468656e67696e652f6c61726176656c2d6c6f6767696e672f646f776e6c6f616473)](https://packagist.org/packages/healthengine/laravel-logging)[![Build Status](https://camo.githubusercontent.com/aaccf03abc05bce992cc9bb76d3a322b3ccb4a4fa40f7288605c412ec058b803/68747470733a2f2f7472617669732d63692e636f6d2f4865616c7468456e67696e6541552f6c61726176656c2d6c6f6767696e672e7376673f6272616e63683d6d6173746572)](https://travis-ci.com/HealthEngineAU/laravel-logging)

This is a custom package designed for Laravel. It provides a logging stack pre-configured to format for Logstash and adds multiple useful Monolog processors.

It includes the following processors to enrich logs with extra data:

- [MemoryPeakUsageProcessor](https://github.com/Seldaek/monolog/blob/master/src/Monolog/Processor/MemoryPeakUsageProcessor.php)which adds the peak memory usage using the `memory_get_peak_usage()` PHP function,
- [MemoryUsageProcessor](https://github.com/Seldaek/monolog/blob/master/src/Monolog/Processor/MemoryUsageProcessor.php)which adds the current memory usage using the `memory_get_usage()` PHP function,
- [UidProcessor](https://github.com/Seldaek/monolog/blob/master/src/Monolog/Processor/UidProcessor.php) which adds a unique ID to each instance of the logger class - useful to track all logs across a single request,
- [WebProcessor](https://github.com/Seldaek/monolog/blob/master/src/Monolog/Processor/WebProcessor.php) which adds the current request URI, request method and client IP to a log record,
- [BuildTagProcessor](https://github.com/HealthEngineAU/laravel-logging/blob/master/src/Processors/BuildTagProcessor.php)which is designed for use in docker and will add the image tag to the logs.
- [IntrospectionProcessor](https://github.com/Seldaek/monolog/blob/master/src/Monolog/Processor/IntrospectionProcessor.php) which adds the file, class, function and line where the log was triggered.

Usage
-----

[](#usage)

A `logstash_single`, `logstash_stderr`, and `logstash_stdout` logger have been made available for use as logging channels. You can use these in a stack along with some others or use them standalone. Simply set your `LOG_CHANNEL` environment variable to either of those pre-configured channels.

To customise configuration of these channels, [copy the contents of `laravel-logging.php`](./config/laravel-logging.php) to the `channels` key in the application's `config/logging.php` file.

The `logstash_stderr` channel includes a formatter for Logstash, the only difference compared to the `logstash` channel is that the log lines go to STDERR instead of to a file. This is useful for a Laravel application running in docker.

The `logstash_stdout` channel includes a formatter for Logstash, the only difference compared to the `logstash` channel is that the log lines go to STDOUT instead of to a file. This is useful for a Laravel application running in docker.

*Note:* The `logstash_stdout` channel cannot be used with PHP FPM processes because PHP FPM makes STDOUT unavailable internally.

*Note:* The `BuildTagProcessor` requires you to inject the Docker build tag into `build_tag` key in `config/app.php`. If it is not present, the value is not added to the logs.

License
-------

[](#license)

Laravel Logging is licensed under the MIT license.

###  Health Score

51

—

FairBetter than 96% of packages

Maintenance50

Moderate activity, may be stable

Popularity36

Limited adoption so far

Community19

Small or concentrated contributor base

Maturity84

Battle-tested with a long release history

 Bus Factor2

2 contributors hold 50%+ of commits

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

Recently: every ~182 days

Total

23

Last Release

286d ago

Major Versions

1.3.0 → 2.0.02020-03-04

v2.0.4 → v3.0.02022-07-06

v3.0.2 → v4.0.02023-03-14

v3.0.4 → v4.0.22023-08-08

v4.1.0 → v5.0.02025-08-06

PHP version history (3 changes)v4.0.0PHP ~8.1.0 || ~8.2.0

v4.0.3PHP ~8.1.0 || ~8.2.0 || ~8.3.0

v5.0.0PHP ~8.2.0 || ~8.3.0

### Community

Maintainers

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

![](https://www.gravatar.com/avatar/0caec84933c461475313072790637b89e905b604ce657718e41116fbd7640368?d=identicon)[jradtilbrook](/maintainers/jradtilbrook)

---

Top Contributors

[![tspencer244](https://avatars.githubusercontent.com/u/15922667?v=4)](https://github.com/tspencer244 "tspencer244 (9 commits)")[![dependabot-preview[bot]](https://avatars.githubusercontent.com/in/2141?v=4)](https://github.com/dependabot-preview[bot] "dependabot-preview[bot] (5 commits)")[![nathanblogs](https://avatars.githubusercontent.com/u/414153?v=4)](https://github.com/nathanblogs "nathanblogs (4 commits)")[![awais-vteams](https://avatars.githubusercontent.com/u/10154558?v=4)](https://github.com/awais-vteams "awais-vteams (1 commits)")[![reececomo](https://avatars.githubusercontent.com/u/7390781?v=4)](https://github.com/reececomo "reececomo (1 commits)")

---

Tags

elasticsearchkibanalaravellaravel-logstashlogginglogstashmonologlaravelloggingelasticsearchmonologlogstashkibana

### Embed Badge

![Health badge](/badges/healthengine-laravel-logging/health.svg)

```
[![Health](https://phpackages.com/badges/healthengine-laravel-logging/health.svg)](https://phpackages.com/packages/healthengine-laravel-logging)
```

###  Alternatives

[nulpunkt/monolog-elasticsearch-logstashformat

Use the logstash formatter with elasticsearch

3570.1k](/packages/nulpunkt-monolog-elasticsearch-logstashformat)[naoray/laravel-github-monolog

Log driver to store logs as github issues

10619.4k](/packages/naoray-laravel-github-monolog)[shaffe/laravel-mail-log-channel

A package to support logging via email in Laravel

1286.2k](/packages/shaffe-laravel-mail-log-channel)

PHPackages © 2026

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