PHPackages                             vmorozov/laravel-json-log-formatter - 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. vmorozov/laravel-json-log-formatter

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

vmorozov/laravel-json-log-formatter
===================================

Package to quickly set up log formatter in json format that is supported by elk stack

v1.0.2(5mo ago)01.1k↓50%[3 PRs](https://github.com/freezer278/laravel_json_log_formatter/pulls)MITPHPPHP ^8.1CI passing

Since Mar 14Pushed 4mo ago1 watchersCompare

[ Source](https://github.com/freezer278/laravel_json_log_formatter)[ Packagist](https://packagist.org/packages/vmorozov/laravel-json-log-formatter)[ Docs](https://github.com/vmorozov/laravel-json-log-formatter)[ GitHub Sponsors]()[ RSS](/packages/vmorozov-laravel-json-log-formatter/feed)WikiDiscussions main Synced 1mo ago

READMEChangelogDependencies (13)Versions (7)Used By (0)

Package to quickly set up log formatter in json format that is supported by elk stack
=====================================================================================

[](#package-to-quickly-set-up-log-formatter-in-json-format-that-is-supported-by-elk-stack)

This is where your description should go. Limit it to a paragraph or two. Consider adding a small example.

Support us
----------

[](#support-us)

[![](https://camo.githubusercontent.com/cdde79194ef7cc78a047a2664467d32bed369ed64024b2095e1026ccde5b5629/68747470733a2f2f6769746875622d6164732e73332e65752d63656e7472616c2d312e616d617a6f6e6177732e636f6d2f6c61726176656c5f6a736f6e5f6c6f675f666f726d61747465722e6a70673f743d31)](https://spatie.be/github-ad-click/laravel_json_log_formatter)

We invest a lot of resources into creating [best in class open source packages](https://spatie.be/open-source). You can support us by [buying one of our paid products](https://spatie.be/open-source/support-us).

We highly appreciate you sending us a postcard from your hometown, mentioning which of our package(s) you are using. You'll find our address on [our contact page](https://spatie.be/about-us). We publish all received postcards on [our virtual postcard wall](https://spatie.be/open-source/postcards).

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

[](#installation)

You can install the package via composer:

```
composer require vmorozov/laravel-json-log-formatter
```

You can publish the config file with:

```
php artisan vendor:publish --tag="json-log-formatter-config"
```

Add the following to your `config/logging.php` file to the channel that you want in json format:

```
'formatter' => \VMorozov\LaravelJsonLogFormatter\JsonLogsFormatter::class,
```

for example for 'daily' channel it should look like this:

```
'daily' => [
    'driver' => 'daily',
    'path' => storage_path('logs/laravel.log'),
    'level' => env('LOG_LEVEL', 'debug'),
    'days' => env('LOG_DAILY_DAYS', 15),
    'replace_placeholders' => true,
    'formatter' => \VMorozov\LaravelJsonLogFormatter\JsonLogsFormatter::class,
],
```

Testing
-------

[](#testing)

```
composer test
```

Changelog
---------

[](#changelog)

Please see [CHANGELOG](CHANGELOG.md) for more information on what has changed recently.

Contributing
------------

[](#contributing)

Please see [CONTRIBUTING](CONTRIBUTING.md) for details.

Security Vulnerabilities
------------------------

[](#security-vulnerabilities)

Please review [our security policy](../../security/policy) on how to report security vulnerabilities.

Credits
-------

[](#credits)

- [Volodymyr Morozov](https://github.com/freezer278)
- [All Contributors](../../contributors)

License
-------

[](#license)

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

###  Health Score

41

—

FairBetter than 89% of packages

Maintenance74

Regular maintenance activity

Popularity19

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity51

Maturing project, gaining track record

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

Total

3

Last Release

166d ago

### Community

Maintainers

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

---

Top Contributors

[![dependabot[bot]](https://avatars.githubusercontent.com/in/29110?v=4)](https://github.com/dependabot[bot] "dependabot[bot] (3 commits)")[![freezer278](https://avatars.githubusercontent.com/u/17979033?v=4)](https://github.com/freezer278 "freezer278 (3 commits)")[![github-actions[bot]](https://avatars.githubusercontent.com/in/15368?v=4)](https://github.com/github-actions[bot] "github-actions[bot] (3 commits)")

---

Tags

laravelVolodymyr Morozovlaravel-json-log-formatter

###  Code Quality

TestsPest

Static AnalysisPHPStan

Code StyleLaravel Pint

### Embed Badge

![Health badge](/badges/vmorozov-laravel-json-log-formatter/health.svg)

```
[![Health](https://phpackages.com/badges/vmorozov-laravel-json-log-formatter/health.svg)](https://phpackages.com/packages/vmorozov-laravel-json-log-formatter)
```

###  Alternatives

[spatie/laravel-health

Monitor the health of a Laravel application

86910.0M83](/packages/spatie-laravel-health)[spatie/laravel-slack-alerts

Send a message to Slack

3212.6M4](/packages/spatie-laravel-slack-alerts)[keepsuit/laravel-opentelemetry

OpenTelemetry integration for laravel

142347.8k](/packages/keepsuit-laravel-opentelemetry)[spatie/laravel-error-share

Share your Laravel errors to Flare

43965.6k3](/packages/spatie-laravel-error-share)[vormkracht10/laravel-mails

Laravel Mails can collect everything you might want to track about the mails that has been sent by your Laravel app.

24149.7k](/packages/vormkracht10-laravel-mails)[tapp/filament-maillog

Filament plugin to view outgoing mail

2952.6k1](/packages/tapp-filament-maillog)

PHPackages © 2026

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