PHPackages                             lukam/logging-tap - 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. lukam/logging-tap

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

lukam/logging-tap
=================

Adds logging tap functionality to Laravel 5.0 - 5.3

1.0.0(7y ago)020MITPHP

Since Mar 18Pushed 7y ago1 watchersCompare

[ Source](https://github.com/luka-mladenovic/logging-tap)[ Packagist](https://packagist.org/packages/lukam/logging-tap)[ RSS](/packages/lukam-logging-tap/feed)WikiDiscussions master Synced yesterday

READMEChangelogDependencies (2)Versions (2)Used By (0)

Laravel logging tap
===================

[](#laravel-logging-tap)

Adds a [logging tap](https://laravel.com/docs/5.6/logging#advanced-monolog-channel-customization) functionality to Laravel versions from 5.0 to 5.3.

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

[](#installation)

Install the package using Composer.

```
composer require lukam/logging-tap

```

Open up `config/app.php` and add the service provider to your existing `providers` array.

```
'providers' => [
	LoggingTap\LogServiceProvider::class
]
```

Usage
-----

[](#usage)

Create a new logging tap using the artisan `make:tap` command. This will create a new tap file inside the `App\Logging` folder.

```
php artisan make:tap ExampleTap

```

Open up `config/app.php`, scroll down to "Logging Configuration" and add a `log_tap` array entry. Add your logging tap classes to this array. Any classes in this array will customize the Monolog instance when created.

```
'log_tap' => [App\Taps\ExampleTap::class],
```

For more information on how to work with logging taps refer to Laravel's [logging documentation](https://laravel.com/docs/5.6/logging#advanced-monolog-channel-customization).

Examples
--------

[](#examples)

Create a logging tap to push a processor to Monolog instance:

```
