Le Tracer utilise la librairie log4net.
RegisterGlobalFilters
de votre application, ajoutez la ligne de code suivante :
log4net.config.XMLConfig();
[assembly: log4net.Config.XmlConfigurator(ConfigFile = "Web.config", Watch = true)]
<log4net>
<appender name="nudge" type="log4net.Appender.FileAppender">
<file value="${LOCALAPPDATA}/NudgeAgent/nudge-agent.log" />
<appendToFile value="true" />
<layout type="log4net.Layout.PatternLayout">
<conversionPattern value="[%t] %level %d [%logger] - %m%n" />
</layout>
</appender>
<root>
<level value="DEBUG" />
<appender-ref ref="nudge" />
</root>
</log4net>
</nudge-configuration>