mako / sentry
A Sentry integration for the Mako Framework
Installs: 102 156
Dependents: 0
Suggesters: 1
Security: 0
Stars: 0
Watchers: 3
Forks: 0
Open Issues: 0
Requires
- php: >=8.1.0
- sentry/sentry: ^4.5
Requires (Dev)
- mako/framework: ^10.0.0-dev
- monolog/monolog: ^3.4
- phpstan/phpstan: ^1.10.32
- phpunit/phpunit: ^10.3
README
A Sentry integration for the Mako Framework.
Requirements
Mako 10.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://<key>@sentry.io/<project>',
],
...
],
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']
.