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

Option to assign response logs #2156

Merged
merged 1 commit into from
Dec 23, 2024
Merged

Conversation

flovouin
Copy link
Contributor

There's been a few issues around not being able to assign response logs, mainly this one. The follow up has been to document this feature as not supported.

However I've found a way to assign response logs as well, rather painlessly. This is a proposal to add an option to support that. I've implemented this as an option such that the default behaviour wouldn't change. Also, because this uses setBinding, this effectively changes the existing response logger rather than create a child logger (which wouldn't work).

I couldn't find a reason why this solution hadn't been considered, but maybe there are downsides I haven't though of. Feel free to comment on that.

Cheers,

@iamolegga
Copy link
Owner

@flovouin thank you for fantastic work. Could you squash commits in one? And I'll do the rest

@flovouin
Copy link
Contributor Author

Thanks for the quick response @iamolegga! I've merged the two commits into one.

@iamolegga iamolegga merged commit f16a6d9 into iamolegga:master Dec 23, 2024
8 checks passed
@flovouin flovouin deleted the assign-response branch December 23, 2024 10:37
@iamolegga
Copy link
Owner

released in 4.2.0

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 this pull request may close these issues.

2 participants