PHPackages                             naveen-codehub/laravel-selective-slack-logger - 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. naveen-codehub/laravel-selective-slack-logger

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

naveen-codehub/laravel-selective-slack-logger
=============================================

A Laravel package for log specific levels (e.g., error, debug) to Slack with ease and flexibility.

v2.0.3(1y ago)26MITPHPPHP ^8.1

Since Jan 18Pushed 1y ago1 watchersCompare

[ Source](https://github.com/naveen-codehub/laravel-selective-slack-logger)[ Packagist](https://packagist.org/packages/naveen-codehub/laravel-selective-slack-logger)[ RSS](/packages/naveen-codehub-laravel-selective-slack-logger/feed)WikiDiscussions main Synced today

READMEChangelog (7)Dependencies (1)Versions (10)Used By (0)

Laravel Selective Slack Logger
==============================

[](#laravel-selective-slack-logger)

`laravel-selective-slack-logger` is a package that allows you to define specific log levels to post logs to Slack using the Monolog package. You can choose any log levels, and you can even choose more than one log level (e.g., error, info). When you specify certain log levels, only those logs will be posted to Slack.

### Version Compatibility:

[](#version-compatibility)

- Version `v2.*` is intended for **Laravel 10** and **Laravel 11** versions.

---

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

[](#installation)

Install the latest version with

```
$ composer require naveen-codehub/laravel-selective-slack-logger
```

Usage
-----

[](#usage)

To configure logging to Slack with specific log levels, you can modify your Laravel logging configuration file (`config/logging.php`). Below is an example of how to configure the Slack channel to log warnings:

```
'selective_slack_logger' => [
    'driver' => 'monolog',
    'handler' => CustomLogLevelHandler::class,
    'handler_with' => [
        'url' => env('SELECTIVE_SLACK_LOGGER_WEBHOOK_URL'),
        'levels' => [\Monolog\Level::Warning, \Monolog\Level::Emergency],
    ],
],
```

About
-----

[](#about)

### Requirements

[](#requirements)

- Monolog `^3.0` works with PHP 8.1 or above.
- Laravel `^10.0 || ^11.0`

### Author

[](#author)

Naveen -

### License

[](#license)

Monolog is licensed under the MIT License - see the [LICENSE](LICENSE) file for details

###  Health Score

29

—

LowBetter than 57% of packages

Maintenance38

Infrequent updates — may be unmaintained

Popularity7

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity53

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 75% 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 ~0 days

Total

9

Last Release

533d ago

Major Versions

v1.0.0 → v2.0.02025-01-18

v1.0.1 → v2.0.12025-01-18

v1.0.2 → v2.0.22025-01-18

1.x-dev → 2.x-dev2025-01-18

PHP version history (2 changes)v1.0.0PHP ^7.4 || ^8.0

v2.0.0PHP ^8.1

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/193675903?v=4)[Naveen](/maintainers/naveen-codehub)[@naveen-codehub](https://github.com/naveen-codehub)

---

Top Contributors

[![Naga-Groups](https://avatars.githubusercontent.com/u/171055588?v=4)](https://github.com/Naga-Groups "Naga-Groups (9 commits)")[![naveen-codehub](https://avatars.githubusercontent.com/u/193675903?v=4)](https://github.com/naveen-codehub "naveen-codehub (3 commits)")

---

Tags

laravelslacklaravel-packageSlack Logsspecific log levelparticular log levelselective log

### Embed Badge

![Health badge](/badges/naveen-codehub-laravel-selective-slack-logger/health.svg)

```
[![Health](https://phpackages.com/badges/naveen-codehub-laravel-selective-slack-logger/health.svg)](https://phpackages.com/packages/naveen-codehub-laravel-selective-slack-logger)
```

###  Alternatives

[guanguans/laravel-exception-notify

Monitor exception and report to the notification channels(Log、Mail、AnPush、Bark、Chanify、DingTalk、Discord、Gitter、GoogleChat、IGot、Lark、Mattermost、MicrosoftTeams、NowPush、Ntfy、Push、Pushback、PushBullet、PushDeer、PushMe、Pushover、PushPlus、QQ、RocketChat、ServerChan、ShowdocPush、SimplePush、Slack、Telegram、WeWork、WPush、XiZhi、YiFengChuanHua、ZohoCliq、ZohoCliqWebHook、Zulip).

14845.8k1](/packages/guanguans-laravel-exception-notify)[open-telemetry/opentelemetry-auto-laravel

OpenTelemetry auto-instrumentation for Laravel

592.7M9](/packages/open-telemetry-opentelemetry-auto-laravel)[api-platform/laravel

API Platform support for Laravel

58171.6k14](/packages/api-platform-laravel)[nightowl/agent

NightOwl monitoring agent — collects telemetry from laravel/nightwatch and writes to PostgreSQL

771.7k](/packages/nightowl-agent)[ecotone/laravel

Ecotone for Laravel — CQRS, Event Sourcing, Sagas, Durable Workflows, and Outbox on top of Laravel Queue, via PHP attributes.

21318.6k3](/packages/ecotone-laravel)

PHPackages © 2026

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