When I use the default layout with NLog it only prints the name of the exception. I\'ve been told that the log4jxmlevent layout doesn\'t prints nothing about the exception.
I had to use the one of the Logger. + Level + Exception methods:
Logger.
Exception
logger.ErrorException("ex", ex);
and a custom layout
layout="${exception:format=ToString,StackTrace}${newline}"