PHPackages                             mbpcoder/laravel-monolog-rocketchat - 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. mbpcoder/laravel-monolog-rocketchat

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

mbpcoder/laravel-monolog-rocketchat
===================================

Rocket Chat Handler for Monolog

v1.0.1(10mo ago)10MITPHPPHP ^8.0

Since May 17Pushed 7mo ago1 watchersCompare

[ Source](https://github.com/mbpcoder/laravel-monolog-rocketchat)[ Packagist](https://packagist.org/packages/mbpcoder/laravel-monolog-rocketchat)[ Docs](https://github.com/mbpcoder/laravel-monolog-rocketchat)[ RSS](/packages/mbpcoder-laravel-monolog-rocketchat/feed)WikiDiscussions main Synced today

READMEChangelog (2)Dependencies (1)Versions (3)Used By (0)

Real-Time Laravel exception logs in your Rocket Chat 🚀
======================================================

[](#real-time-laravel-exception-logs-in-your-rocket-chat--)

ScreenShot
----------

[](#screenshot)

[![image](https://private-user-images.githubusercontent.com/3877538/509155226-732ddfbc-cbc7-4826-ae37-9ae449dc0b13.png?jwt=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3ODE1MTU1NjIsIm5iZiI6MTc4MTUxNTI2MiwicGF0aCI6Ii8zODc3NTM4LzUwOTE1NTIyNi03MzJkZGZiYy1jYmM3LTQ4MjYtYWUzNy05YWU0NDlkYzBiMTMucG5nP1gtQW16LUFsZ29yaXRobT1BV1M0LUhNQUMtU0hBMjU2JlgtQW16LUNyZWRlbnRpYWw9QUtJQVZDT0RZTFNBNTNQUUs0WkElMkYyMDI2MDYxNSUy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In0.Raep9s2k5Yjy59fjtLvLhLSkUViz12aooX6pAo4S00w)❓ Why Another Logger?
---------------------

[](#-why-another-logger)

Logging should be more than just saving data — it should **drive action**. Here’s why 🔔 **Rocket Chat Handler for Monolog** 📝 is a game-changer:

- 🚀 **Real-Time Feedback** – Instantly receive logs in your Rocket Chat.
- 🧠 **Actionable Insights** – Include useful context for quick understanding.
- 🛡️ **No Need for Sentry or Third-Party Services**
- ⚡ **Immediate Alerts** – Be notified of issues the moment they happen.
- 👥 **Team Collaboration** – Share logs in group chats for quick follow-up.

🎯 Installation
--------------

[](#-installation)

Install via Composer:

```
composer require mbpcoder/laravel-monolog-rocketchat
```

⚙️ Usage
--------

[](#️-usage)

Update your `config/logging.php` file to configure the Rocket Chat logging channel.

### ⏳ Running Logs in a Queue

[](#-running-logs-in-a-queue)

If a queue name is set, logs will be processed asynchronously in the specified queue. Otherwise, they will run synchronously.

### 🔧 Configuration Example

[](#-configuration-example)

Modify your `config/logging.php` file:

```
return [
    'channels' => [
        'stack' => [
            'driver'   => 'stack',
            'channels' => ['single', 'rocketchat'],
        ],

        'rocketchat' => [
            'driver' => 'monolog',
            'level' => 'debug',
            'handler' => TheCoder\MonologRocketChat\RocketChatBotHandler::class,
            'handler_with' => [
                'token' => env('LOG_ROCKET_CHAT_BOT_TOKEN'),
                'chat_id' => env('LOG_ROCKET_CHAT_CHAT_ID'),
                'api_url' => env('LOG_ROCKET_CHAT_BOT_API'),
                'queue' => env('LOG_ROCKET_CHAT_QUEUE', null)
                'queue_connection' => env('LOG_ROCKET_CHAT_QUEUE_CONNECTION', null),
            ],
            'formatter' => TheCoder\MonologRocketChat\RocketChatFormatter::class,
            'formatter_with' => [
                'tags' => env('LOG_ROCKET_CHAT_TAGS', null),
            ],
        ],
    ],
];
```

### 🔄 Customizing Log Settings at Runtime

[](#-customizing-log-settings-at-runtime)

You can dynamically set the bot token, chat ID while logging:

```
logger('message', [
    'token' => 'your_bot_token',
    'chat_id' => 'your_chat_id'
]);
```

📜 Environment Variables
-----------------------

[](#-environment-variables)

Ensure the following variables are set in your `.env` file:

```
LOG_ROCKET_CHAT_BOT_TOKEN=
LOG_ROCKET_CHAT_CHAT_ID=
LOG_ROCKET_CHAT_BOT_API=
```

📄 License
---------

[](#-license)

This package is open-source and available under the MIT License. 🏆

###  Health Score

29

—

LowBetter than 57% of packages

Maintenance59

Moderate activity, may be stable

Popularity2

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity43

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

Every ~100 days

Total

2

Last Release

312d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/55791471?v=4)[mb-programmer](/maintainers/mb-programmer)[@mb-programmer](https://github.com/mb-programmer)

---

Top Contributors

[![mbpcoder](https://avatars.githubusercontent.com/u/3877538?v=4)](https://github.com/mbpcoder "mbpcoder (11 commits)")

---

Tags

loglaravelloggingmonologchannelsbotsrocketchatmonolog-rocketchat

### Embed Badge

![Health badge](/badges/mbpcoder-laravel-monolog-rocketchat/health.svg)

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

###  Alternatives

[thecoder/laravel-monolog-telegram

Telegram Handler for Monolog

2942.5k](/packages/thecoder-laravel-monolog-telegram)[rahimi/monolog-telegram

A handler for Monolog that sends messages to Telegram Channels

6980.2k1](/packages/rahimi-monolog-telegram)[naoray/laravel-github-monolog

Log driver to store logs as github issues

10823.1k](/packages/naoray-laravel-github-monolog)[codeinternetapplications/monolog-stackdriver

Stackdriver handler for Monolog.

14185.1k](/packages/codeinternetapplications-monolog-stackdriver)[jacklul/monolog-telegram

Monolog handler that sends logs through Telegram bot to any chat in HTML format

2471.4k2](/packages/jacklul-monolog-telegram)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
