PHPackages                             pstaender/silverstripe-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. pstaender/silverstripe-sentry

ActiveSilverstripe-vendormodule[Logging &amp; Monitoring](/categories/logging)

pstaender/silverstripe-sentry
=============================

Sentry Logging for SilverStripe

v0.1.1(7y ago)5854[1 PRs](https://github.com/pstaender/silverstripe-sentry/pulls)MITPHP

Since Sep 22Pushed 5y ago1 watchersCompare

[ Source](https://github.com/pstaender/silverstripe-sentry)[ Packagist](https://packagist.org/packages/pstaender/silverstripe-sentry)[ Docs](https://github.com/pstaender/silverstripe-sentry)[ RSS](/packages/pstaender-silverstripe-sentry/feed)WikiDiscussions master Synced today

READMEChangelogDependencies (2)Versions (4)Used By (0)

Logging to Sentry from SilverStripe
===================================

[](#logging-to-sentry-from-silverstripe)

First install the module in your SilverStripe 4.x project:

```
  $ composer require pstaender/silverstripe-sentry dev-master
```

Activate and setup Sentry logging in the config file of your project. Replace the example dsn `https://…:…@sentry.myserver.com/1` with your Sentry project dsn:

```
---
Name: my-sentry-logging
Only:
  environment: "live"
---
SilverStripe\Core\Injector\Injector:
  Psr\Log\LoggerInterface:
    calls:
      LogFileHandler: [ pushHandler, [ '%$SentryLogHandler' ] ]
  RavenClient:
    constructor:
      - https://…:…@sentry.myserver.com/1
```

Use other formatter
-------------------

[](#use-other-formatter)

Just override the sentry-logging-config:

```
---
Name: sentry-logging
Only:
  environment: "live"
---
SilverStripe\Core\Injector\Injector:
  Psr\Log\LoggerInterface:
    calls:
      LogFileHandler: [ pushHandler, [ '%$SentryLogHandler' ] ]
  RavenClient:
    constructor:
      - https://…:…@…/18
---
Name: my-sentry-logging
After:
  - '#sentry-logging'
---
SilverStripe\Core\Injector\Injector:
  SentryLogHandler:
    properties:
      ContentType: application/json
      Formatter: '%$Monolog\Formatter\JsonFormatter'
```

Do everything by yourself via injection
---------------------------------------

[](#do-everything-by-yourself-via-injection)

You can skip installing this module by installing the sentry-client:

```
  $ composer require sentry/sentry "*"

```

and modifying your project config:

```
---
Name: myproject
---
SilverStripe\Core\Injector\Injector:
  Psr\Log\LoggerInterface:
    calls:
      LogFileHandler: [ pushHandler, [ '%$SentryLogHandler' ] ]
  SentryLogHandler:
    class: Monolog\Handler\RavenHandler
    constructor:
      - '%$RavenClient'
    properties:
      ContentType: text/html
      Formatter: '%$SentryLoggingFormatter'
  SentryLoggingFormatter:
    class: Monolog\Formatter\LineFormatter
    constructor:
      - '%message%'
  RavenClient:
    class: Raven_Client
    constructor:
      - https://…:…@sentry.myserver.com/1
```

###  Health Score

28

—

LowBetter than 54% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity20

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity53

Maturing project, gaining track record

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

Total

2

Last Release

2784d ago

### Community

Maintainers

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

---

Top Contributors

[![pstaender](https://avatars.githubusercontent.com/u/140571?v=4)](https://github.com/pstaender "pstaender (3 commits)")

---

Tags

loggingsilverstripesentry

### Embed Badge

![Health badge](/badges/pstaender-silverstripe-sentry/health.svg)

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

###  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)[jenssegers/raven

Sentry (Raven) error monitoring integration for Laravel projects

92197.1k1](/packages/jenssegers-raven)

PHPackages © 2026

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