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

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

maplesnow/laravel-monolog-config
================================

Simple Configuration Package for Monolog in Laravel.

v1.0.0(7y ago)1131MITPHPPHP &gt;=7.0.0CI failing

Since Feb 26Pushed 7y ago1 watchersCompare

[ Source](https://github.com/summerway/laravel-monolog-config)[ Packagist](https://packagist.org/packages/maplesnow/laravel-monolog-config)[ RSS](/packages/maplesnow-laravel-monolog-config/feed)WikiDiscussions master Synced yesterday

READMEChangelogDependencies (4)Versions (3)Used By (0)

Introduction
------------

[](#introduction)

This package provides a simple way to configure monolog in Laravel.
This makes it a cinch to configure these handlers, allowing you to mix and match them to customize your application's log handling.
Project development with reference to [Astromic/laravel-monlog-config](https://github.com/Astrotomic/laravel-monolog-config) .

---

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

[](#installation)

1. Require this package with composer using the following command:

    ```
    composer require maplesnow/laravel-monolog-config
    ```
2. After updating composer, add the service provider to the `providers` array in `config/app.php`

    ```
    MapleSnow\MonologConfig\MonologConfigServiceProvider::class
    ```

    **Laravel 5.5** uses Package Auto-Discovery, so doesn't require you to manually add the ServiceProvider.
3. Publish the configuration for monolog using the following command:

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

    ```
4. Use the application's `configureMonologUsing` method in your `bootstrap/app.php` like this

    ```
    /*
    |--------------------------------------------------------------------------
    | Configure Monolog
    |--------------------------------------------------------------------------
    */
    $app->configureMonologUsing(function (\Monolog\Logger $monolog) {
        (new MapleSnow\MonologConfig\MonologConfigurator($monolog))->run();
    });
    ```

    Refer [laravel custom-monolog-configuration](https://laravel.com/docs/5.5/errors#custom-monolog-configuration)

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

[](#configuration)

All of the configuration for your application's logging system is housed in the `config/logging.php` configuration file. `enable` is the trigger to control your application's log channels active or disabled.

NameDescriptionHandler`single`writing log as like as laravel single channel`StreamHandler``daily`writing log as like as laravel daily channel`RotatingFileHandler``syslog`writing log as like as laravel syslog channel`SyslogHandler``errorlog`writing log as like as laravel errorlog channel`ErrorLogHandler``mail`sending a mail report some urgent exception`SwfitMailHandler``redis`writing log to redis`RedisHandler``redisFilter`writing log to redis depends on level and date`RedisFilterHandler`Usage
=====

[](#usage)

You may write information to the logs using the laravel's `Log` facade.The logger provides the eight logging levels: *emergency*, *alert*, *critical*, *error*, *warning*, *notice*, *info* and *debug*。

```
Log::emergency($message);
Log::alert($message);
Log::critical($message);
Log::error($message);
Log::warning($message);
Log::notice($message);
Log::info($message);
Log::debug($message);
```

If you need to output custom information, you need to define the content to be output under an array of `extra` for the key.

```
Log::debug($message,['extra' => "extra message"]);
```

###  Health Score

26

—

LowBetter than 43% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity11

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity56

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% 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

Unknown

Total

1

Last Release

2633d ago

### Community

Maintainers

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

---

Top Contributors

[![summerway](https://avatars.githubusercontent.com/u/5858441?v=4)](https://github.com/summerway "summerway (12 commits)")

---

Tags

loglaravelloggingconfigmonolog

### Embed Badge

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

```
[![Health](https://phpackages.com/badges/maplesnow-laravel-monolog-config/health.svg)](https://phpackages.com/packages/maplesnow-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)
