Logs PHP Exceptions to airbrake.io or alternative services that are API compliant to airbrake.io. At the moment only exceptions in ContentElement are handled. Other frontendexceptions and all backend exceptions are not supported (handled) yet., (*1)
After installing the extension, include its Static TypoScript Template and then configure your airbrake.io project ID and key in the TS Constant Editor., (*2)
$GLOBALS['TYPO3_CONF_VARS']['SYS']['debugExceptionHandler'] = \Smichaelsen\Airbrake\ExceptionHandler\GeneralExceptionHandler::class;
, (*3)
$GLOBALS['TYPO3_CONF_VARS']['SYS']['productionExceptionHandler'] = \Smichaelsen\Airbrake\ExceptionHandler\GeneralExceptionHandler::class;
, (*4)
These options are available in plugin.tx_airbrake
. All of them are also configurable via the constant editor. All of them have stdWrap
enabled., (*5)
option | default | description |
---|---|---|
projectId | (empty) | Project ID for airbrake |
projectKey | (empty) | Project Key for airbrake |
host | api.airbrake.io |
URL of your airbrake host. |
stillLogExceptionToLogfile | false |
TYPO3 usually logs production exceptions to typo3temp/logs/ and airbrake disables this behaviour. If this is set to true, TYPO3 will keep logging to the file. |
These settings are not introduced by EXT:airbrake
but can be useful for you:, (*6)
option | description |
---|---|
config.contentObjectExceptionHandler | This is set to Smichaelsen\Airbrake\ExceptionHandler\ContentObjectExceptionHandler by EXT:airbrake to register it as exception handler for content objects. Unsetting it will restore TYPO3's default behaviour. |
config.contentObjectExceptionHandler.errorMessage | This is TYPO3's option to change the default message ("Oops, an error occurred! Code: SOMEEXCEPTIONIDENTIFIER"). Also note that EXT:airbrake changes the TYPO3 default message to a localized message if you set nothing here. |