PHPackages                             czim/laravel-json-context-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. czim/laravel-json-context-logging

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

czim/laravel-json-context-logging
=================================

JSON Context logging for Laravel

3.0.0(3y ago)336.7k↓14.6%11PHPPHP ^8.0

Since Jun 25Pushed 2y ago1 watchersCompare

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

READMEChangelog (2)Dependencies (4)Versions (9)Used By (1)

[![Latest Version on Packagist](https://camo.githubusercontent.com/8f484980de079b2ad1d6d1bcc57018de4f55315545161cb1f40317cf1aa456b7/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f637a696d2f6c61726176656c2d6a736f6e2d636f6e746578742d6c6f6767696e672e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/czim/laravel-json-context-logging)[![Software License](https://camo.githubusercontent.com/55c0218c8f8009f06ad4ddae837ddd05301481fcf0dff8e0ed9dadda8780713e/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4d49542d627269676874677265656e2e7376673f7374796c653d666c61742d737175617265)](LICENSE.md)[![Build Status](https://camo.githubusercontent.com/23366870093fea205c4bec05d7bada46c8feec38030da20b33aec58ef5f7153c/68747470733a2f2f7472617669732d63692e6f72672f637a696d2f6c61726176656c2d6a736f6e2d636f6e746578742d6c6f6767696e672e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/czim/laravel-json-context-logging)[![Coverage Status](https://camo.githubusercontent.com/f14b62b4d1e1e81de15f20d7ad3e18007629b5ccc4dba950493bf3e6d149fa89/68747470733a2f2f636f766572616c6c732e696f2f7265706f732f6769746875622f637a696d2f6c61726176656c2d6a736f6e2d636f6e746578742d6c6f6767696e672f62616467652e7376673f6272616e63683d6d6173746572)](https://coveralls.io/github/czim/laravel-json-context-logging?branch=master)

JSON Context Logging for Laravel
================================

[](#json-context-logging-for-laravel)

Wrapper package to make use of [czim/monolog-json-context](https://github.com/czim/monolog-json-context) in Laravel applications.

The aim of this package is to easily set up (separate) logging to be easily grokkable by Logstash.

Version Compatibility
---------------------

[](#version-compatibility)

LaravelPackage5.8 and below0.96.0 and up1.09.02.010.03.0Changelog
---------

[](#changelog)

[View the changelog](CHANGELOG.md).

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

[](#installation)

Via Composer:

```
$ composer require czim/laravel-json-context-logging
```

Publish the configuration file:

```
php artisan vendor:publish --provider="Czim\LaravelJsonContextLogging\Providers\JsonContextLoggingServiceProvider"
```

Credits
-------

[](#credits)

- [All Contributors](../../contributors)

License
-------

[](#license)

The MIT License (MIT). Please see [License File](LICENSE.md) for more information.

###  Health Score

38

—

LowBetter than 85% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity32

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity73

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

Recently: every ~319 days

Total

8

Last Release

1137d ago

Major Versions

0.9.1 → 1.0.02019-10-08

1.0.3 → 2.0.02023-02-01

2.0.0 → 3.0.02023-04-07

### Community

Maintainers

![](https://www.gravatar.com/avatar/1657b09521b6030fe32d864a493ded8b1dbbdf737ef3772135dfc123cea34767?d=identicon)[czim](/maintainers/czim)

---

Top Contributors

[![czim](https://avatars.githubusercontent.com/u/11831617?v=4)](https://github.com/czim "czim (13 commits)")

---

Tags

jsonlaravellogginglogstashmonologjsonlaravelformattingmonolog

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/czim-laravel-json-context-logging/health.svg)

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

###  Alternatives

[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)[yzen.dev/mono-processor

This Processor will display in the logs bread crumbs by which you can more quickly and accurately identify the cause of the error.

116.1k](/packages/yzendev-mono-processor)

PHPackages © 2026

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