I am trying to log an exception and would like to include a different variable value in the log message. Is there a Logger API that does this?
logger.error("Logging in user {} with birthday {}", user.getName(), user.getBirthdayCalendar(), exception);
source
share