PHPackages                             homeapp/monolog-sentry-handler - 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. homeapp/monolog-sentry-handler

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

homeapp/monolog-sentry-handler
==============================

Sentry handler for php SDK

2.0.2(2y ago)07.8kMITPHPPHP ^7.4 || ^8

Since Aug 17Pushed 2y agoCompare

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

READMEChangelog (3)Dependencies (12)Versions (14)Used By (0)

Monolog Sentry Handler
======================

[](#monolog-sentry-handler)

[![Build Status](https://github.com/homeappcorporate/monolog-sentry-handler/actions/workflows/main.yml/badge.svg)](https://github.com/homeappcorporate/monolog-sentry-handler/actions)[![MIT License](https://camo.githubusercontent.com/85db1c4f2208d733442c2f7908c244e9cd58dd1deec94c1c7fa6dbd2ce62ba6b/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f6c6963656e73652f686f6d65617070636f72706f726174652f6d6f6e6f6c6f672d73656e7472792d68616e646c65723f7374796c653d666c61742d737175617265)](LICENSE)

It is a [Monolog](https://github.com/Seldaek/monolog) handler for Sentry PHP SDK v2 with breadcrumbs support.

Features
--------

[](#features)

- Send each log record to a [Sentry](https://sentry.io) server
- Send log records as breadcrumbs when they are handled in batch; the main reported log record is the one with the highest log level
- Send log along with exception when one is set in the main log record context
- Customize data sent to Sentry to fit your needs

Requirements
------------

[](#requirements)

- PHP 7.4+
- [Sentry PHP SDK](https://github.com/getsentry/sentry-php)

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

[](#installation)

The suggested installation method is via [composer](https://getcomposer.org/):

```
composer require homeapp/monolog-sentry-handler
```

Basic usage
-----------

[](#basic-usage)

```
