Created
January 25, 2021 14:56
-
-
Save tanaka-takayoshi/455dbf0890d0cd50760895a409993834 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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