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

Support logger option #892

Open
cleptric opened this issue Nov 5, 2024 · 0 comments
Open

Support logger option #892

cleptric opened this issue Nov 5, 2024 · 0 comments
Assignees

Comments

@cleptric
Copy link
Member

cleptric commented Nov 5, 2024

There is currently no convenient way to setup the logger for debugging purposes.
We should widen the accepted options values in the PHP SDK to support usage like:

sentry:
    dsn: "%env(SENTRY_DSN)%"
    options:
        logger: "sentry.logger"

services:
  sentry.logger:
    class: 'Sentry\Logger\DebugFileLogger'
    arguments:
        $filePath: '../../var/log/sentry.log'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants