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

Adding postParams in ERROR notice for HTTP 405 code #1898

Closed
sdespont opened this issue Jun 23, 2024 · 1 comment
Closed

Adding postParams in ERROR notice for HTTP 405 code #1898

sdespont opened this issue Jun 23, 2024 · 1 comment
Labels

Comments

@sdespont
Copy link

Monolog version 3

Hello, I use HtmlFormatter to receive logs by email.

In the case of an ERROR notification for an HTTP 405 error code, there is no postParams data provided, but postParams are present in the next INFO notification if present for a deprecated notification.

How can I include postParams directly in the ERROR notification?

@Seldaek
Copy link
Owner

Seldaek commented Jun 28, 2024

The best way to do email logging IMO is to combine it with a FingersCrossedHandler => BufferHandler => MailerHandler. That way you get the full request logs in the email, not just the ERROR.

@Seldaek Seldaek closed this as completed Jun 28, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants