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.
Use the overloads that take an Exception as the second argument:
catch(Exception crap)
{
log.Error("Something went horribly wrong.", crap);
}
Then in your layout include the ${exception}
layout renderer:
Sources: