Emmanuel Oga
09/26/2020, 7:29 PM<http://logger.info|logger.info>("${PERFORM POTENTIALLY EXPENSIVE LOGGING OP}")
, so even if I configure the logger to only log errors, the info call will still incur the cost of the expensive operation, with no message being logged. Would be nice to have it so the logging doesn't even happen at all unless I turn it on.nanodeath
09/26/2020, 7:33 PMif (logger.isInfoEnabled()) <http://logger.info|logger.info>(...)
or <http://logger.info|logger.info>(...) {}
, but neither are ideal compared to more Kotlin-y solutions like what you foundEmmanuel Oga
09/26/2020, 7:34 PMkenkyee
09/26/2020, 7:34 PMnanodeath
09/26/2020, 7:34 PMEmmanuel Oga
09/26/2020, 7:34 PMNir
09/26/2020, 8:43 PMEmmanuel Oga
09/26/2020, 8:56 PMnfrankel
09/26/2020, 9:23 PMReed Ellsworth
02/21/2021, 4:55 PM