PHPackages                             gummibeer/laravel-monolog-config - 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. gummibeer/laravel-monolog-config

Abandoned → [astrotomic/laravel-monolog-config](/?search=astrotomic%2Flaravel-monolog-config)ArchivedLibrary[Logging &amp; Monitoring](/categories/logging)

gummibeer/laravel-monolog-config
================================

Simple Configuration Package for Monolog in Laravel.

1.4.0(9y ago)102163[2 issues](https://github.com/Gummibeer/laravel-monolog-config/issues)MITPHPPHP &gt;=5.5.0

Since Aug 31Pushed 8y ago3 watchersCompare

[ Source](https://github.com/Gummibeer/laravel-monolog-config)[ Packagist](https://packagist.org/packages/gummibeer/laravel-monolog-config)[ RSS](/packages/gummibeer-laravel-monolog-config/feed)WikiDiscussions master Synced 2mo ago

READMEChangelog (5)Dependencies (6)Versions (6)Used By (0)

Monolog Configurator - Laravel 5
================================

[](#monolog-configurator---laravel-5)

[![GitHub Author](https://camo.githubusercontent.com/bae83cc9cc7c6ce7654140ba96f3ae74d1b2b6c04a0b3089b16e46acc59332ec/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f617574686f722d40617374726f746f6d69632d6f72616e67652e7376673f7374796c653d666c61742d737175617265)](https://github.com/Astrotomic)[![GitHub release](https://camo.githubusercontent.com/a60012ec09e27dd5ff4f9a7998693f7c27dee7ae12056bfa887f6a3b076d50bd/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f72656c656173652f617374726f746f6d69632f6c61726176656c2d6d6f6e6f6c6f672d636f6e6669672e7376673f7374796c653d666c61742d737175617265)](https://github.com/Astrotomic/laravel-monolog-config/releases)[![GitHub license](https://camo.githubusercontent.com/942e017bf0672002dd32a857c95d66f28c5900ab541838c6c664442516309c8a/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4d49542d626c75652e7376673f7374796c653d666c61742d737175617265)](https://raw.githubusercontent.com/Astrotomic/laravel-monolog-config/master/LICENSE)[![GitHub issues](https://camo.githubusercontent.com/6cfe8400f85e9aab79e11a0ce38677de2f6a31b2c66a61ff1b60b61b638f7bbd/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f6973737565732f417374726f746f6d69632f6c61726176656c2d6d6f6e6f6c6f672d636f6e6669672e7376673f7374796c653d666c61742d737175617265)](https://github.com/Astrotomic/laravel-monolog-config/issues)

[![StyleCI](https://camo.githubusercontent.com/4a1c5966946253a6a32cf16094fcca9cbf8cc000c4089ab5edb4bd9bd7386c6e/68747470733a2f2f7374796c6563692e696f2f7265706f732f36373032363932332f736869656c64)](https://styleci.io/repos/67026923)[![Code Climate](https://camo.githubusercontent.com/8a8a5414eb17f84b78acf67d262fc0486e6709b99559a72508a226f36c638b10/68747470733a2f2f696d672e736869656c64732e696f2f636f6465636c696d6174652f6769746875622f417374726f746f6d69632f6c61726176656c2d6d6f6e6f6c6f672d636f6e6669672e7376673f7374796c653d666c61742d737175617265)](https://codeclimate.com/github/Astrotomic/laravel-monolog-config)[![Code Climate](https://camo.githubusercontent.com/8b801a2113fe21d1ce961d9facbf2a273fdc661cd0bfb32db47fc8402c925abc/68747470733a2f2f696d672e736869656c64732e696f2f636f6465636c696d6174652f6973737565732f6769746875622f417374726f746f6d69632f6c61726176656c2d6d6f6e6f6c6f672d636f6e6669672e7376673f7374796c653d666c61742d737175617265)](https://codeclimate.com/github/Astrotomic/laravel-monolog-config/issues)

This package provides a simple way to configure monolog in Laravel/Lumen.

---

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

[](#installation)

### Step 1

[](#step-1)

Add it on your `composer.json`

```
"astrotomic/laravel-monolog-config": "^1.0"

```

and run

```
composer update

```

or run

```
composer require astrotomic/laravel-monolog-config

```

### Step 2

[](#step-2)

Add the following string to `config/app.php`

**Providers array:**

```
\Astrotomic\MonologConfig\MonologConfigServiceProvider::class,

```

### Step 3

[](#step-3)

Publish the configuration for monolog with the following command:

```
php artisan vendor:publish --provider="Astrotomic\MonologConfig\MonologConfigServiceProvider"

```

And adjust all the configurations to your needs.

### Step 4

[](#step-4)

Use it as your monolog configuration tool. Add this to your `bootstrap/app.php` after the Interface bindings and before the return:

```
/*
|--------------------------------------------------------------------------
| Configure Monolog
|--------------------------------------------------------------------------
*/

$app->configureMonologUsing(function (Monolog\Logger $monolog) {
    $configurator = new \Astrotomic\MonologConfig\MonologConfigurator($monolog);
    $configurator->run();
});
```

You can configure monolog after this your own in this method the normal [Laravel way](https://laravel.com/docs/5.2/errors#configuration).

Handlers
--------

[](#handlers)

At the moment this class supports the following handlers, if you need any other one just create a PR or write an issue.

**v1.0.0**

- `\Monolog\Handler\ErrorLogHandler`
- `\Monolog\Handler\GelfHandler`
- `\Monolog\Handler\LogglyHandler`
- `\Monolog\Handler\MandrillHandler`
- `\Monolog\Handler\MongoDBHandler`
- `\Monolog\Handler\NativeMailerHandler`
- `\Monolog\Handler\RotatingFileHandler`
- `\Monolog\Handler\StreamHandler`
- `\Monolog\Handler\SyslogHandler`

**v1.1.0**

- `\Monolog\Handler\HipChatHandler`
- `\Monolog\Handler\IFTTTHandler`
- `\Monolog\Handler\LogEntriesHandler`
- `\Monolog\Handler\NullHandler`
- `\Monolog\Handler\RedisHandler`
- `\Monolog\Handler\ZendMonitorHandler`

**v1.3.0**

- `\Monolog\Handler\SlackHandler`
- `\Monolog\Handler\SlackWebhookHandler`
- `\Monolog\Handler\SlackbotHandler`

###  Health Score

30

—

LowBetter than 64% of packages

Maintenance16

Infrequent updates — may be unmaintained

Popularity19

Limited adoption so far

Community12

Small or concentrated contributor base

Maturity62

Established project with proven stability

 Bus Factor1

Top contributor holds 94.3% 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 ~63 days

Total

5

Last Release

3289d ago

### Community

Maintainers

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

---

Top Contributors

[![Gummibeer](https://avatars.githubusercontent.com/u/6187884?v=4)](https://github.com/Gummibeer "Gummibeer (33 commits)")[![tumichnix](https://avatars.githubusercontent.com/u/1856432?v=4)](https://github.com/tumichnix "tumichnix (2 commits)")

---

Tags

configurationhandlerlaravelloggingmonologmonolog-configurationpackagephploglaravelloggingconfigmonolog

### Embed Badge

![Health badge](/badges/gummibeer-laravel-monolog-config/health.svg)

```
[![Health](https://phpackages.com/badges/gummibeer-laravel-monolog-config/health.svg)](https://phpackages.com/packages/gummibeer-laravel-monolog-config)
```

###  Alternatives

[ytake/laravel-fluent-logger

fluent logger for laravel and lumen

63541.6k1](/packages/ytake-laravel-fluent-logger)[codeinternetapplications/monolog-stackdriver

Stackdriver handler for Monolog.

14181.7k](/packages/codeinternetapplications-monolog-stackdriver)[thecoder/laravel-monolog-telegram

Telegram Handler for Monolog

2939.5k](/packages/thecoder-laravel-monolog-telegram)[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)
