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

Log PHP warnings in prod #528

Closed
maidmaid opened this issue Feb 12, 2019 · 3 comments
Closed

Log PHP warnings in prod #528

maidmaid opened this issue Feb 12, 2019 · 3 comments

Comments

@maidmaid
Copy link

The prod env doesn't log the PHP warnings like when we pass an uncountable thing to the count() function.


It could be better to change info to warning here.

@B-Galati
Copy link
Contributor

I think it would be the crossed finger handler line to change instead:

@maidmaid
Copy link
Author

I would prefer to keep the main handler for critical errors. What about :

monolog:
    handlers:
        warning:
            type: stream
            path: "%kernel.logs_dir%/%kernel.environment%.warning.log"
        warning_filter:
            type: filter
            handler: warning
            min_level: warning
            max_level: warning
            channels: ["php"]

@nicolas-grekas
Copy link
Member

Closing as staled. Feel free to open PRs if you think there are things to tweak.

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

No branches or pull requests

3 participants