PHPackages                             shureban/laravel-logplex - 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. shureban/laravel-logplex

ActiveLaravel-package[Logging &amp; Monitoring](/categories/logging)

shureban/laravel-logplex
========================

Laravel pretty logging messages

1.0.11(1y ago)318MITPHPPHP &gt;=8.2

Since Jun 19Pushed 1y ago1 watchersCompare

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

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

Laravel logplex
===============

[](#laravel-logplex)

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

[](#installation)

Require this package with composer using the following command:

```
composer require shureban/laravel-logplex
```

Add the following class to the `providers` array in `config/app.php`:

```
Shureban\LaravelLogplex\LogplexServiceProvider::class,
```

You have to publish the config file.

```
php artisan vendor:publish --provider="Shureban\LaravelLogplex\LogplexServiceProvider"
```

How to use
----------

[](#how-to-use)

### 1. Add new row in `config/logging.php` in section `channels`

[](#1-add-new-row-in-configloggingphp-in-section-channels)

```
'logplex' => [
    'driver' => 'custom',
    'via'    => \Shureban\LaravelLogplex\LogplexLogger::class,
    'level'  => env('LOGPLEX_LEVEL', \Monolog\Level::Error),
]

```

### 2. Edit you .env file

[](#2-edit-you-env-file)

```
LOG_STACK_CHANNELS=single,logplex

```

or add additional log channel to `stack` channel. As example:

```
'stack' => [
    'driver'   => 'stack',
    'channels' => ['single','logplex'],
],

```

Result
------

[](#result)

[![Base screenshot](./content/base-screen.png)](./content/base-screen.png)

Customization
-------------

[](#customization)

For example you need to change `UserBlock`. You wanna add information about organization which related with user.

### 1. Create your own version of `MessageBuilder`. Its important to implement from `MessageBuilderInterface`

[](#1-create-your-own-version-of-messagebuilder-its-important-to-implement-from-messagebuilderinterface)

```
