I have set log level info in my application now when I log messages with debug look like
logger.debug("Debug logs");
will the logging framework still construct log object internally? though debug message will not be printed as application log set to info level. If log object construct then I have to write
if(logger.isDebugEnabled()) {
logger.debug("Debug logs");
}
which looks like ugly code. Please suggest what I have to do in this case
Thank you