I'm trying to create a folder structure in the eventlog using NLog.
I'm able to create logs in the 'Applications & Services logs' but what I really want is something like:
My target in the nlog.config file:
<target name="eventLog" xsi:type="EventLog" source="EventLogSource" log="Foo/Bar" category="Test" eventId="TestID">
<layout xsi:type="XmlLayout">
<attribute name="logger" layout="${logger}" />
<attribute name="level" layout="${level:upperCase=true}"/>
<attribute name="message" layout="${message}" />
<attribute name="exception" layout="${exception}" />
</layout>
</target>
Does anyone know how this can be done, if it can be done?