I have several IIS Web Services using NLog for Common Logging.
I need to have only one configuration file for all the Web Services with this config values:
<nlog xmlns="http://www.nlog-project.org/schemas/NLog.xsd" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<targets>
<target name="sqlTarget" type="SqlDbTarget" />
<target name="emailTarget" type="EmailTarget" layout="${plataforma-html-text-formatter:Titulo=Mail Title}" />
<target name="snmpTarget" type="SNMPAuthenticatedTarget" />
</targets>
<rules>
<logger name="*" writeTo="sqlTarget" />
<logger name="*" minlevel="Error" writeTo="emailTarget" />
<logger name="*" minlevel="Error" writeTo="snmpTarget" />
</rules>
</nlog>
Where I can leave this configuration values?
I have tested embed the NLog XML in machine.config and also applicationHost.config, but not luck. Also, I tested to leave NLog.config in C:\Windows\System32\inetsrv, but either.