netlogix / nxsentry
This package is abandoned and no longer maintained.
No replacement package was suggested.
Sentry integration
Package info
Type:typo3-cms-extension
pkg:composer/netlogix/nxsentry
1.1.3
2022-12-22 14:07 UTC
Requires
- sentry/sentry: ^3.5
- typo3/cms-core: ^10.4 || ^11.5
Requires (Dev)
- ext-sqlite3: *
- nimut/phpunit-merger: ^1.1
- nimut/testing-framework: ^6.0
- phpunit/phpcov: ^8.2
Suggests
None
Provides
Conflicts
None
Replaces
None
README
Sentry integration for TYPO3
This TYPO3 extension allows you to automate reporting of errors to Sentry
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:
$ 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:
SENTRY_DSN='http://public_key@your-sentry-server.com/project-id'
SENTRY_RELEASE='1.0.7'
SENTRY_ENVIRONMENT='Staging'
Add this to your LocalConfiguration.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
return [ 'EXTENSIONS' => [ 'nxsentry' => [ 'options' => [ 'dsn' => 'http://public_key@your-sentry-server.com/project-id' ] ], ], ];
Add own integration to add custom data to the event.
return [ 'EXTENSIONS' => [ 'nxsentry' => [ 'integrations' => [ new MyCustomIntegration() ] ], ], ];