https://github.com/netlogix/nxsentry
https://github.com/netlogix/nxsentry
php sentry typo3
Last synced: about 2 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/netlogix/nxsentry
- Owner: netlogix
- Created: 2021-11-16T11:34:19.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2022-12-22T14:09:05.000Z (over 2 years ago)
- Last Synced: 2024-11-23T21:11:22.730Z (6 months ago)
- Topics: php, sentry, typo3
- Language: PHP
- Size: 36.1 KB
- Stars: 0
- Watchers: 5
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
[](http://opensource.org/licenses/MIT)
[](https://packagist.org/packages/netlogix/nxsentry)
[](https://websolutions.netlogix.de/)
[](hhttps://github.com/netlogix/nxsentry)
[](https://get.typo3.org/version/10)
[](https://get.typo3.org/version/11)
[](https://php.net/)
[](https://github.com/netlogix/nxsentry/actions)# Sentry integration for TYPO3
This [TYPO3](https://typo3.org/) extension allows you to automate reporting of errors to [Sentry](https://www.sentry.io)
## Installation
The Sentry integration is installed as a composer package. For your existing project, simply include `netlogix/nxsentry`
into the dependencies of your TYPO3 distribution:```bash
$ composer require netlogix/nxsentry
```## Configuration
The new Sentry SDK 3.x has some environment variables which can be used, for example in a .env file:
```apacheconfig
SENTRY_DSN='http://[email protected]/project-id'
SENTRY_RELEASE='1.0.7'
SENTRY_ENVIRONMENT='Staging'
```Add this to your `LocalConfiguration.php`
```php
return [
'LOG' => [
'writerConfiguration' => [
\TYPO3\CMS\Core\Log\LogLevel::ERROR => [
'Netlogix\Nxsentry\Log\Writer\SentryBreadcrumbWriter' => [],
'Netlogix\Nxsentry\Log\Writer\SentryWriter' => [],
],
],
],
];
```Overwriting default options in the `LocalConfiguration.php`
```php
return [
'EXTENSIONS' => [
'nxsentry' => [
'options' => [
'dsn' => 'http://[email protected]/project-id'
]
],
],
];
```Add own integration to add custom data to the event.
```php
return [
'EXTENSIONS' => [
'nxsentry' => [
'integrations' => [
new MyCustomIntegration()
]
],
],
];
```