https://github.com/mako-framework/sentry
Sentry integration for the Mako Framework.
https://github.com/mako-framework/sentry
mako-framework mako-package php sentry
Last synced: 6 months ago
JSON representation
Sentry integration for the Mako Framework.
- Host: GitHub
- URL: https://github.com/mako-framework/sentry
- Owner: mako-framework
- License: bsd-3-clause
- Created: 2019-09-25T10:06:35.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2025-08-12T13:44:55.000Z (10 months ago)
- Last Synced: 2025-08-12T15:34:43.277Z (10 months ago)
- Topics: mako-framework, mako-package, php, sentry
- Language: PHP
- Homepage:
- Size: 57.6 KB
- Stars: 0
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
# Mako Sentry
[](https://github.com/mako-framework/sentry/actions?query=workflow%3ATests)
[](https://github.com/mako-framework/sentry/actions/workflows/static-analysis.yml)
A [Sentry](https://sentry.io/welcome/) integration for the Mako Framework.
## Requirements
Mako 11.0 or greater.
## Installation
Install the package using the following composer command:
```
composer require mako/sentry
```
Next you'll have to add a `logger.sentry` config key to your `application.php` config file.
```
'logger' => [
...
'sentry' => [
'dsn' => 'https://@sentry.io/',
],
...
],
```
Then you'll have to replace the default `LoggerService` with the included `LoggerService` in the `application.php` config file.
```
'services' => [
'core' => [
...
mako\sentry\services\LoggerService::class,
...
],
],
```
And finally you'll have to enable logging to sentry by setting the `logger.handler` key in the `application.php` config file to the following value:
```
'logger' => [
...
'handler' => ['Sentry', 'Stream'],
...
],
```
> Note that you can disable the default file logging by setting the value to `['Sentry']`.