log4jxmlevent does not render Exception
description
When using the log4jxmlevent no Exception is rendered to the logfile.
I tried:
Config of Target:
<target name="logfile" xsi:type="File" fileName="C:\Logfile_${shortdate}.xml" keepFileOpen="false" layout="${log4jxmlevent:includeSoucreInfo=true:includeCallSite=true:includeMdc=true:includeNdc=true:indentXml=true}"/>
In Code:
Log.Error("Test", new Exception("Ex1", new Exception("Inner Ex1")));
Log.ErrorException("Test2", new Exception("Ex2", new Exception("Inner Ex2")));
In both cases the logfile only contains the message "Test" or "Test2" but not the exception.