What is the correct approach to log both a populated message and a stack trace of the exception?
logger.error( \"\\ncontext info one two three: {} {} {}\
In addition to @Ceki 's answer, If you are using logback and setup a config file in your project (usually logback.xml), you can define the log to plot the stack trace as well using
%date |%-5level| [%thread] [%file:%line] - %msg%n%ex{full}
the %ex in pattern is what makes the difference