PHPackages                             bohacpetr/nette-sentry-legacy - 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. bohacpetr/nette-sentry-legacy

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

bohacpetr/nette-sentry-legacy
=============================

Legacy Nette Sentry logger library

01PHP

Since Mar 18Pushed 1y agoCompare

[ Source](https://github.com/bohacpetr/nette-sentry-legacy)[ Packagist](https://packagist.org/packages/bohacpetr/nette-sentry-legacy)[ RSS](/packages/bohacpetr-nette-sentry-legacy/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependenciesVersions (1)Used By (0)

Legacy Nette Sentry
===================

[](#legacy-nette-sentry)

This is fork of `rootpd/nette-sentry` [link](https://github.com/rootpd/nette-sentry) supporting legacy `Nette 2.2`, `Sentry 1.11` and `PHP 7.0+`. Just in case you end up maintaining technical debt.

---

Tracy logger extension capable of logging messages and errors to Sentry.

*Note*: If you have debug mode enabled in your application, logger will only send `\Tracy\Debugger::log()` messages to sentry. Any exception ending with Tracy's blue screen is not going to be logged as you can see the exception details directly.

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

[](#installation)

Install package via Composer:

```
composer require bohacpetr/nette-sentry-legacy

```

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

[](#configuration)

Enable and configure the extension in Nette config file:

```
extensions:
	# ...
	sentry: Rootpd\NetteSentry\DI\SentryExtension

sentry:
    dsn: https://123abc123abc123abc123abc123abc12@sentry.io/3 # required
    environment: production # optional, defaults to "local"
    user_fields: # optional, defaults to empty array; Nette's identity ID is being sent automatically
        - email
    session_sections: # optional, list of session sections to track
        - mySection
    priority_mapping:
        mypriority: warning
```

### Priority-Severity mapping

[](#priority-severity-mapping)

Sometimes you might need to use custom *priority* when logging the error in Nette:

```
\Tracy\Debugger::log('foo', 'mypriority');
```

Sentry only allows strict set of severities. By default any message with unknown (non-standard) severity is not being logged.

You can map your custom *priority* to Sentry's *severity* in config by using `priority_mapping` as shown in the example.

The allowed set of Sentry severities can be checked in [Sentry's PHP repository](https://github.com/getsentry/sentry-php/blob/master/src/Severity.php).

Usage
-----

[](#usage)

Once enabled as extension, you can continue to throw exceptions without any change. To log message please use `\Tracy\Debugger::log()` method.

###  Health Score

15

—

LowBetter than 3% of packages

Maintenance34

Infrequent updates — may be unmaintained

Popularity1

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity15

Early-stage or recently created project

 Bus Factor1

Top contributor holds 79.2% 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.

### Community

Maintainers

![](https://www.gravatar.com/avatar/24fb7c4a91fec2b78834106fecf5f700c7e86d29a1468631d885e3deb368acd8?d=identicon)[bohacpetr](/maintainers/bohacpetr)

---

Top Contributors

[![rootpd](https://avatars.githubusercontent.com/u/812909?v=4)](https://github.com/rootpd "rootpd (19 commits)")[![martenb](https://avatars.githubusercontent.com/u/13311472?v=4)](https://github.com/martenb "martenb (3 commits)")[![markoph](https://avatars.githubusercontent.com/u/6843562?v=4)](https://github.com/markoph "markoph (2 commits)")

### Embed Badge

![Health badge](/badges/bohacpetr-nette-sentry-legacy/health.svg)

```
[![Health](https://phpackages.com/badges/bohacpetr-nette-sentry-legacy/health.svg)](https://phpackages.com/packages/bohacpetr-nette-sentry-legacy)
```

###  Alternatives

[psr/log

Common interface for logging libraries

10.4k1.2B9.2k](/packages/psr-log)[itsgoingd/clockwork

php dev tools in your browser

5.9k27.6M94](/packages/itsgoingd-clockwork)[graylog2/gelf-php

A php implementation to send log-messages to a GELF compatible backend like Graylog2.

41838.2M138](/packages/graylog2-gelf-php)[bugsnag/bugsnag-psr-logger

Official Bugsnag PHP PSR Logger.

32132.5M2](/packages/bugsnag-bugsnag-psr-logger)[consolidation/log

Improved Psr-3 / Psr\\Log logger based on Symfony Console components.

15462.2M7](/packages/consolidation-log)[datadog/php-datadogstatsd

An extremely simple PHP datadogstatsd client

19124.6M15](/packages/datadog-php-datadogstatsd)

PHPackages © 2026

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