PHPackages                             timetorock/laravel-monolog-sentry - 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. timetorock/laravel-monolog-sentry

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

timetorock/laravel-monolog-sentry
=================================

Laravel 5.x.x library for integration Monolog Sentry

v1.6(7y ago)22.1kMITPHP

Since May 14Pushed 7y ago1 watchersCompare

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

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

Monolog Sentry for Laravel 5.x
==============================

[](#monolog-sentry-for-laravel-5x)

[![Software License](https://camo.githubusercontent.com/55c0218c8f8009f06ad4ddae837ddd05301481fcf0dff8e0ed9dadda8780713e/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4d49542d627269676874677265656e2e7376673f7374796c653d666c61742d737175617265)](LICENSE.md)

Laravel 5.x library for integration Monolog errors with Sentry [sentry-laravel](https://github.com/getsentry/sentry-laravel).

This library implies already installed [sentry-laravel](https://github.com/getsentry/sentry-laravel).

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

[](#installation)

Go to the root of your Laravel project and run the following command:

Laravel 5.4 or earlier:

```
composer require timetorock/laravel-monolog-sentry 1.3
```

Laravel 5.5+:

```
composer require timetorock/laravel-monolog-sentry
```

Laravel 5.4 or earlier
----------------------

[](#laravel-54-or-earlier)

(Service will be auto-discovered by Laravel 5.5+)

Then in your `config/app.php` add the `MonologSentryServiceProvider` to your `providers` array

```
'providers' => array(

    ...
    Timetorock\LaravelMonologSentry\Providers\MonologSentryServiceProvider::class,
),
```

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

[](#configuration)

Your `config/sentry.php` file must have DSN from your Sentry project.

```
'dsn'     => 'https://***:***@sentry.yourdomain.com/{project}'
```

You can configure Raven through the `config/sentry.php` config file. All the available options are already in there together with their default values.

You can find more details about the available options in Raven using this link:

By default notification would be send for `warning` level and more.

You can change log level with `sentry.level` config option, must be a Monolog number.

`Monolog\Logger` levels:

```
    DEBUG = 100;
    INFO = 200;
    NOTICE = 250;
    WARNING = 300;
    ERROR = 400;
    CRITICAL = 500;
    ALERT = 550;
    EMERGENCY = 600;

```

Testing
-------

[](#testing)

To test if your Sentry application is correctly grabbing your logs, simply launch `php artisan tinker` and execute a sample log like so:

```
$ php artisan tinker
>>> Log::error("This is a test error. Sentry should get this.");
```

Security
--------

[](#security)

If you discover any security related issues, please email  or use the issue tracker.

Credits
-------

[](#credits)

- [Aleksandr Natalenko](https://github.com/tiemtorock)
- [All Contributors](../../contributors)

License
-------

[](#license)

The MIT License (MIT). Please see [License File](LICENSE.md) for more information.

###  Health Score

32

—

LowBetter than 72% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity18

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity67

Established project with proven stability

 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 ~159 days

Total

5

Last Release

2648d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/2372b8a1877f43f2a11202b5eb63feed6c9df68b320bf47ed6fa4801f78d45b6?d=identicon)[timetorock](/maintainers/timetorock)

---

Top Contributors

[![timetorock](https://avatars.githubusercontent.com/u/6104856?v=4)](https://github.com/timetorock "timetorock (17 commits)")

---

Tags

loglaravellogssentrymonologlaravel-logssentry-laravel

### Embed Badge

![Health badge](/badges/timetorock-laravel-monolog-sentry/health.svg)

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

###  Alternatives

[sentry/sentry-laravel

Laravel SDK for Sentry (https://sentry.io)

1.3k114.3M154](/packages/sentry-sentry-laravel)[jackiedo/log-reader

An easy log reader and management tool for Laravel

151376.5k4](/packages/jackiedo-log-reader)[kabbouchi/laravel-ward

25364.1k1](/packages/kabbouchi-laravel-ward)[kitloong/laravel-app-logger

Laravel log for your application

101.2M8](/packages/kitloong-laravel-app-logger)[edujugon/laravel-log

Simple API to write logs for Laravel.

2010.7k](/packages/edujugon-laravel-log)[shaffe/laravel-mail-log-channel

A package to support logging via email in Laravel

1286.2k](/packages/shaffe-laravel-mail-log-channel)

PHPackages © 2026

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