Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
<?xml version="1.0" encoding="utf-8" ?>
<nlog xmlns="http://www.nlog-project.org/schemas/NLog.xsd"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
autoReload="true"
throwConfigExceptions="true">
<extensions>
<add assembly="NLog.Web.AspNetCore"/>
<add assembly="NewRelic.LogEnrichers.NLog" />
</extensions>
<targets>
<target xsi:type="Console" name="lifetimeConsole">
<layout xsi:type="newrelic-jsonlayout">
</layout>
</target>
<target name="NewRelicLogAPI" xsi:type="NewRelicLogs">
</target>
</targets>
<rules>
<logger name="*" minlevel="Trace" writeTo="lifetimeConsole" />
<logger name="*" minlevel="Trace" writeTo="NewRelicLogAPI" />
</rules>
</nlog>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment