I had to use the one of the Logger. + Level + Exception methods:
logger.ErrorException("ex", ex);
and a custom layout
layout="${exception:format=ToString,StackTrace}${newline}"
I had to use the one of the Logger. + Level + Exception methods:
logger.ErrorException("ex", ex);
and a custom layout
layout="${exception:format=ToString,StackTrace}${newline}"