Skip to content

Instantly share code, notes, and snippets.

@tanaka-takayoshi
Created January 25, 2021 14:56
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tanaka-takayoshi/455dbf0890d0cd50760895a409993834 to your computer and use it in GitHub Desktop.
Save tanaka-takayoshi/455dbf0890d0cd50760895a409993834 to your computer and use it in GitHub Desktop.
<?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