Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make configurable on TYPO3 context #85

Closed
Zillion01 opened this issue Jun 2, 2023 · 2 comments
Closed

Make configurable on TYPO3 context #85

Zillion01 opened this issue Jun 2, 2023 · 2 comments

Comments

@Zillion01
Copy link

Zillion01 commented Jun 2, 2023

It seems it's not possible to set the logging and debug handling based on context?

When I put in AdditionalConfiguration.php for the isDevelopment context an override like

$GLOBALS['TYPO3_CONF_VARS']['LOG']['writerConfiguration'] = [ \TYPO3\CMS\Core\Log\LogLevel::ERROR => [ \TYPO3\CMS\Core\Log\Writer\FileWriter::class => [], ], ];

This just gets ignored and still everything is send to Sentry. Easy fix, make an option to set it globally (like now in ext_localconf.php) or set it manually yourself.

Client::captureException(new \Exception($exceptionMessage)); should then still work but send stuf to TYPO3 log / debughandler

@baschny
Copy link

baschny commented Aug 9, 2023

I also needed this functionality, see my implementation #87 - feel free to merge, if you find it useful, dear maintainers.

@christophlehmann
Copy link
Contributor

Hey, context based configuration should work now with main branch. Please re-open if something is still wrong

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants