Skip to content

use rewrite to eliminate logging overhead? #2680

Answered by timtebeek
jizhilong asked this question in Ideas
Discussion options

You must be logged in to vote

Hi @jizhilong! Sorry it took a while to respond; any new discussions now trigger a message in Slack, so we don't miss any from now on.

I quite like your suggestion of (only) guarding logging statements that take a potentially expensive method invocation as an argument; it's similar to this issue reported on the rewrite-logging-frameworks repository; you might want to subscribe to that issue. I think it strikes the right balance of only guarding potentially expensive method calls, such that boilerplate is kept to a minimum. If you're up for it we can even coach you to a recipe contribution, in which case it might be easiest to coordinate via Slack.

As for your suggestion of changing the co…

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by timtebeek
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Ideas
Labels
None yet
2 participants