I am currently working on a program wherein, I must write all output to a log file.
I need to write a log method, that should give an output with a level, a message, an
We used below code while using slf4j logger -
logger.error("Error while finding A from DB. a : {} and b : {}", a, b); logger.info("Nothing found in db for A with a : {} and b : {}", a, b);