Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

At least in the Java world it is common to let the logging framework handle parameter evaluation for you.


This feels like one of those "not obvious until you've seen it in production" requirements: any production-ready logging framework should have a mechanism to delay parameter evaluation until after the threshold/destination checks are performed. Most languages have some version of deferred execution (lazy evaluation, thunks, etc.)




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: