by pletnes · 6y ago · 0 comments
For context, I mostly program in python. I could imagine compile-time loglevel settings could address the performance, though.
Might seem tedious, but in fact it's easily automated using snippets in the editor.
Also when I'm inserting trace statements during development it provides a great help since it's much easier to debug logic.
Regarding performance: I don't think that we need to worry about log performance. Most applications we have this days are not performance-bound to the logging. And all it takes to disable particular log level is single `if` in the code. Or a build flag in more extreme cases.
[1]: https://community.oracle.com/blogs/forax/2011/12/17/jsr-292-...