PHPackages                             salamek/raven-nette - 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. salamek/raven-nette

Abandoned → [kdyby/monolog](/?search=kdyby%2Fmonolog)ArchivedLibrary[Logging &amp; Monitoring](/categories/logging)

salamek/raven-nette
===================

Nette implementation of sentry raven-php as logger service for tracy.

v1.3.3(9y ago)659.3k51BSD-3-ClausePHPPHP &gt;=5.3.0

Since May 13Pushed 8y ago1 watchersCompare

[ Source](https://github.com/Salamek/raven-nette)[ Packagist](https://packagist.org/packages/salamek/raven-nette)[ Docs](https://github.com/Salamek/raven-nette)[ RSS](/packages/salamek-raven-nette/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (7)Dependencies (2)Versions (9)Used By (1)

Project abandoned due to incompatibility with nette 2.4
=======================================================

[](#project-abandoned-due-to-incompatibility-with-nette-24)

Please use `kdyby/monolog` instead

Simple migration guide
----------------------

[](#simple-migration-guide)

1. Remove all configuration related to `salamek/raven-nette` &amp;&amp; composer depedency from `composer.json`
2. Install `kdyby/monolog` and `sentry/sentry`

```
composer require kdyby/monolog
composer require sentry/sentry
```

2. Configure new extension

```
sentry:
    dsn: 'YOUR_SENTRY_DSN'
extensions:
    monolog: Kdyby\Monolog\DI\MonologExtension

monolog:
    name: PROJECT_NAME
    hookToTracy: true
    registerFallback: true
    handlers:
        raven: Monolog\Handler\RavenHandler(Raven_Client(%sentry.dsn%))
    processors:
        - Monolog\Processor\GitProcessor
        - Monolog\Processor\WebProcessor
        - Kdyby\Monolog\Processor\PriorityProcessor
```

3. Profit... For more informations consult `kdyby/monolog` documentation

raven-nette
===========

[](#raven-nette)

[![Donate](https://camo.githubusercontent.com/604e3db9c8751116b3f765aad0353ec7ded655bbe8aaacbc38d8c4a6b784b3ed/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f446f6e6174652d50617950616c2d677265656e2e737667)](https://www.paypal.com/cgi-bin/webscr?cmd=_donations&business=D8LQ4XTBLV3C4&lc=CZ&item_number=SalamekPplMyApi&currency_code=EUR)

This is nette implementation of sentry raven-php as logger service for tracy.

Tested with nette 2.2&gt;, please report any bugs into Issues

PR's are welcomed!

Installation and usage
----------------------

[](#installation-and-usage)

### Installation via composer:

[](#installation-via-composer)

```
composer require salamek/raven-nette
```

### Usage

[](#usage)

Register extension to your config.neon:

```
extensions:
  sentryLogger: Salamek\RavenNette\DI\SentryLoggerExtension
```

And configure by setting:

```
sentryLogger:
  dsn: 'YOUR_SENTRY_DSN'

  # Optional configuration values
  inDebug: false # bool: Log in debug mode ? default is false
  directory: null # string|null: Where to store log files ? default is Debugger::$logDirectory, null to disable
  email: null # string|null :Where to send email notifications ? default is Debugger::$email, null to disable
  options: [release: YOUR_RELEASE] # array :All options supported by getsentry/sentry-php
  context:
    user: true # Send logged in user information
```

List of all confuration options for [getsentry/sentry-php](https://github.com/getsentry/sentry-php#configuration)

### Alternative Usage

[](#alternative-usage)

If you dont want to use DI, and/or be able to log errors as soon as posible use this approach

Put this code into your `app/bootstrap.php` after RobotLoader is initiated and `$configurator->enableDebugger` is called:

```
// Initiate sentryLogger
new \Salamek\RavenNette\SentryLogger(
  'YOUR_SENTRY_DSN', //Sentry DSN
  false, //Log in DEBUG mode ? //You dont want that...
  null, //Set where do you want to store file log (Tracy\Debugger::$logDirectory | null | string)
  null, //Send email as usual logger ?   (Tracy\Debugger::$email | null | string | array )
  true,
  ['release' => 'YOUR_RELEASE'] //All options supported by getsentry/sentry-php
);
```

### Usage only with tracy

[](#usage-only-with-tracy)

If you dont want use nette at all but only raven-nette and tracy... well you can!

```
include('vendor/autoload.php');
use Tracy\Debugger;

Debugger::enable(Debugger::PRODUCTION);

new \Salamek\RavenNette\SentryLogger(
  'YOUR_SENTRY_DSN', //Sentry DSN
  false, //Log in DEBUG mode ? //You dont want that...
  null, //Set where do you want to store file log (Tracy\Debugger::$logDirectory | null | string)
  null, //Send email as usual logger ?   (Tracy\Debugger::$email | null | string | array )
  true,
  ['release' => 'YOUR_RELEASE'] //All options supported by getsentry/sentry-php
);

Debugger::log('My error', 'error');
```

And that should be everything...

###  Health Score

37

—

LowBetter than 83% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity34

Limited adoption so far

Community17

Small or concentrated contributor base

Maturity63

Established project with proven stability

 Bus Factor1

Top contributor holds 89.5% 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 ~92 days

Total

8

Last Release

3373d ago

### Community

Maintainers

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

---

Top Contributors

[![Salamek](https://avatars.githubusercontent.com/u/1226241?v=4)](https://github.com/Salamek "Salamek (34 commits)")[![marten-cz](https://avatars.githubusercontent.com/u/582397?v=4)](https://github.com/marten-cz "marten-cz (2 commits)")[![JiriMachacek](https://avatars.githubusercontent.com/u/174371?v=4)](https://github.com/JiriMachacek "JiriMachacek (1 commits)")[![spisovatelprogramu](https://avatars.githubusercontent.com/u/2477127?v=4)](https://github.com/spisovatelprogramu "spisovatelprogramu (1 commits)")

---

Tags

netteraven-nettesentry-phptracynettesentrytracyravendebbuger

### Embed Badge

![Health badge](/badges/salamek-raven-nette/health.svg)

```
[![Health](https://phpackages.com/badges/salamek-raven-nette/health.svg)](https://phpackages.com/packages/salamek-raven-nette)
```

###  Alternatives

[sentry/sentry-laravel

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

1.3k114.3M154](/packages/sentry-sentry-laravel)[jenssegers/raven

Sentry (Raven) error monitoring integration for Laravel projects

90197.2k1](/packages/jenssegers-raven)[facile-it/sentry-module

This module allows integration of Sentry Client into laminas and mezzio

19372.5k](/packages/facile-it-sentry-module)[e96/yii2-sentry

A Yii2 client for Sentry (http://getsentry.com)

2960.4k](/packages/e96-yii2-sentry)[oneup/contao-sentry-bundle

This bundle provides an easy integration of sentry.io for Contao 4.4.x and newer.

1114.8k](/packages/oneup-contao-sentry-bundle)

PHPackages © 2026

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