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
Custom logger #2770
Custom logger #2770
Conversation
Lines 415 to 425 in 65a821a
Or, this is messy right now, as the original commit for the PR was reverted, but my commit to fix the test was not. So the test is failing in master... |
In order to merge, all places where Puma currently logs will have to be switched to this new logger object. |
We just merged #2798 which affects logging, so you'll want to pull latest master to this branch. |
Hey @vzajkov Do you need help with this? Let me know if I can help. |
Hey thanks - I will rebase and let you know if I have any questions. Appreciate it. |
any update on this? i am looking for a way to filter request logs matching a specific domain was hoping to handle this via a custom logger (unless someone knows of an existing way to achieve this for an app that doesn't use rails) |
@vzajkov Thanks a lot for your work on this! Would be really great to get custom loggers and DRY at least my code quite a bit. |
For watchers of this thread: we cannot merge this because it breaks the tests. If you would like to pick this up and get the tests passing, you can do so. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I was able to get it passing with these changes, i noticed options[:logger]
is already being used in the launcher.rb though im not sure if that was by design but it seemed that the change in the launcher is what caused all the other tests to output puma startup strings and cause failures
Co-authored-by: Jack <5182053+phyzical@users.noreply.github.com>
Co-authored-by: Jack <5182053+phyzical@users.noreply.github.com>
Co-authored-by: Jack <5182053+phyzical@users.noreply.github.com>
Co-authored-by: Jack <5182053+phyzical@users.noreply.github.com>
Co-authored-by: Jack <5182053+phyzical@users.noreply.github.com>
Thanks @phyzical! I've added your changes but it seems to be failing 1 test after merging in master. @nateberkopec Is it possible that this is an intermittent failure? |
Yes. I just ran the current PR in my fork, a different job failed... |
It's finally done! Sorry this took so long... out in 6.2. |
Description
Closes #2511
Your checklist for this pull request
[ci skip]
to the title of the PR.#issue
" to the PR description or my commit messages.