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

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

consilience/laravel-extended-logging
====================================

Extend Laravel and Lumen logging to better support containers

1.4.2(2y ago)823.8k↑80%6MITPHPPHP ^8.1

Since Dec 10Pushed 6mo ago2 watchersCompare

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

READMEChangelog (10)Dependencies (2)Versions (16)Used By (0)

[![Latest Stable Version](https://camo.githubusercontent.com/5193303a0a815354bfd5b701249b4591a2681d25b2f8034bdb0118a2785691e8/68747470733a2f2f706f7365722e707567782e6f72672f636f6e73696c69656e63652f6c61726176656c2d657874656e6465642d6c6f6767696e672f762f737461626c65)](https://packagist.org/packages/consilience/laravel-extended-logging)[![Total Downloads](https://camo.githubusercontent.com/44ef086f16ba23143e8b4d0e649d54420e4d2ebc38509c369d933c53adf82094/68747470733a2f2f706f7365722e707567782e6f72672f636f6e73696c69656e63652f6c61726176656c2d657874656e6465642d6c6f6767696e672f646f776e6c6f616473)](https://packagist.org/packages/consilience/laravel-extended-logging)[![Latest Unstable Version](https://camo.githubusercontent.com/9521dd3432450a5b27d18c178a4fc39daea9fb14263241cfa12b729c7ea0274e/68747470733a2f2f706f7365722e707567782e6f72672f636f6e73696c69656e63652f6c61726176656c2d657874656e6465642d6c6f6767696e672f762f756e737461626c65)](https://packagist.org/packages/consilience/laravel-extended-logging)[![License](https://camo.githubusercontent.com/1b50d700075b42cf57d362662becc91bfc5f9307d756be317aed05f36e06e0f8/68747470733a2f2f706f7365722e707567782e6f72672f636f6e73696c69656e63652f6c61726176656c2d657874656e6465642d6c6f6767696e672f6c6963656e7365)](https://packagist.org/packages/consilience/laravel-extended-logging)

- [Laravel and Lumen Extended Logging](#laravel-and-lumen-extended-logging)
    - [Installation](#installation)
    - [Configuration](#configuration)
        - [Configuration Upgrade](#configuration-upgrade)
    - [Example Usage](#example-usage)
    - [TODO](#todo)

Laravel Extended Logging
========================

[](#laravel-extended-logging)

Provide some ready-made logging extensions to make it easier to deploy Laravel into multiple containers.

The main features are:

- A bunch of useful standard monolog processors.
- Laravel user ID, if available.
- Fully qualified class name of the job that is running.
- A sequence number so logs can be reordered when they get mixed up.
- Application name and subsystem name.
- Logs written in structured JSON.

The features applied to the logging here are lightweight, opinionated, mainly non-configurable, and are what we have found to be very useful for our own projects. We are happy to accept PRs for additional features, though with the consideration that this package is not intended to be "all singing, all dancing", but rather a quick and easy install that gets an application logging container-ready with minimal effort.

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

[](#installation)

For Laravel:

```
php composer require consilience/laravel-extended-logging

```

Lumen requires the provider to be registered in `bootstrap/app.php` so that the package can keep track of the name of the job currently running:

```
$app->register(Consilience\Laravel\ExtendedLogging\LoggingServiceProvider::class);

```

Configuration
-------------

[](#configuration)

The main configuration happens through the Laravel `config/logging.php`configuration script, by adding a channel.

```
