PHPackages                             sitmpcz/sentry-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. sitmpcz/sentry-logger

ActiveLibrary

sitmpcz/sentry-logger
=====================

v1.7.1(6mo ago)07.6k↑12.5%PHPPHP &gt;=8.0

Since Jan 26Pushed 6mo ago1 watchersCompare

[ Source](https://github.com/sitmpcz/sentry-logger)[ Packagist](https://packagist.org/packages/sitmpcz/sentry-logger)[ RSS](/packages/sitmpcz-sentry-logger/feed)WikiDiscussions main Synced 1mo ago

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

sentry-logger
=============

[](#sentry-logger)

Install
-------

[](#install)

composer require sitmpcz/sentry-logger

Sentry event logger usage
-------------------------

[](#sentry-event-logger-usage)

1. run Sentry, register your project and get client DSN url
2. in config neon add in section parameters

```
sentry_url: https://something@abc.sentry.io/someproject
```

3. in config neon add in section services

a) simple version

```
tracy.logger: Sitmpcz\SentryLogger(%sentry_url%)
```

b) extended version - use additional attributes (example with release attribute)

```
tracy.logger:
	create: Sitmpcz\SentryLogger(%sentry_url%)
	setup:
		- setAttribute('release', 'myApp@1.8.0')
		- setAttribute('environment', 'production')
```

Manual write to Sentry Error log
--------------------------------

[](#manual-write-to-sentry-error-log)

Using DI load Sentry Logger Example for presenter

```
/** @var \Sitmpcz\SentryLogger @inject */
public \Sitmpcz\SentryLogger $sentryLogger;
```

Then you can write error to Sentry manually:

```
$this->sentryLogger->log(new \Exception("test sentry"),\Tracy\ILogger::ERROR);
```

If you want to write to log manually, you can use Tracy\\Debugger::log too, but you must specify higher priority (Napr CRITICAL) Example

```
\Tracy\Debugger::log("Test zapistu do logu",\Tracy\ILogger::CRITICAL);
```

---

Sentry performance usage (optional)
-----------------------------------

[](#sentry-performance-usage-optional)

Example for Nette - BasePresenter:

```
private ?object $sentryPerformance = null;

function startup(): void
{
   parent::startup();
   $this->sentryPerformance = Sitmpcz\SentryPerformance::startPerformaceMonitoring($this->getName(), $this->getAction());
}

function shutdown(Nette\Application\Response $response): void
{
   parent::shutdown($response);
   if ($this->sentryPerformance) Sitmpcz\SentryPerformance::endPerformaceMonitoring($this->sentryPerformance);
}
```

###  Health Score

45

—

FairBetter than 92% of packages

Maintenance70

Regular maintenance activity

Popularity23

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity66

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

Recently: every ~245 days

Total

17

Last Release

204d ago

PHP version history (2 changes)v1.0PHP &gt;=7.2

v1.7.0PHP &gt;=8.0

### Community

Maintainers

![](https://www.gravatar.com/avatar/3f61433f4e90accc109144c047dcad6df0e5425cd5980d08fe8d5e7cd7c64f1e?d=identicon)[dusanhomola](/maintainers/dusanhomola)

---

Top Contributors

[![zabous](https://avatars.githubusercontent.com/u/8329461?v=4)](https://github.com/zabous "zabous (42 commits)")

### Embed Badge

![Health badge](/badges/sitmpcz-sentry-logger/health.svg)

```
[![Health](https://phpackages.com/badges/sitmpcz-sentry-logger/health.svg)](https://phpackages.com/packages/sitmpcz-sentry-logger)
```

###  Alternatives

[sentry/sentry-laravel

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

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

Symfony integration for Sentry (http://getsentry.com)

73761.4M65](/packages/sentry-sentry-symfony)[sentry/sdk

This is a meta package of sentry/sentry. We recommend using sentry/sentry directly.

327134.8M151](/packages/sentry-sdk)[justbetter/magento2-sentry

Magento 2 Logger for Sentry

1851.5M3](/packages/justbetter-magento2-sentry)[stayallive/wp-sentry

A (unofficial) WordPress plugin to report PHP and JavaScript errors to Sentry.

379197.9k](/packages/stayallive-wp-sentry)[mito/yii2-sentry

Yii 2 extension for Sentry

92377.7k](/packages/mito-yii2-sentry)

PHPackages © 2026

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