Update Console log target to show exception

This commit is contained in:
Basique Evangelist 2021-04-22 20:51:18 +03:00
parent 4131d2f22c
commit 7fdaf43eb9

View File

@ -12,7 +12,8 @@
<target xsi:type="File" name="allfile" fileName="herald.log"
layout="${longdate}|${event-properties:item=EventId_Id}|${uppercase:${level}}|${logger}|${message} ${exception:format=tostring}" />
<target name="logconsole" xsi:type="Console" />
<target name="logconsole" xsi:type="Console"
layout="${longdate}|${level:uppercase=true}|${logger}|${message} ${exception:format=Message,StackTrace,Data:maxInnerExceptionLevel=10}"/>
</targets>
<!-- rules to map from logger name to target -->