Skip to content

Instantly share code, notes, and snippets.

@darkmfj
Created April 24, 2019 02:50
Show Gist options
  • Select an option

  • Save darkmfj/a24be0d99ce050bdad506a10a22c4d68 to your computer and use it in GitHub Desktop.

Select an option

Save darkmfj/a24be0d99ce050bdad506a10a22c4d68 to your computer and use it in GitHub Desktop.
<?xml version="1.0" encoding="utf-8" ?>
<!--
This file needs to be put in the application directory. Make sure to set
'Copy to Output Directory' option in Visual Studio.
-->
<nlog xmlns="http://www.nlog-project.org/schemas/NLog.xsd"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" autoReload="true">
<targets>
<target name="file" xsi:type="File" fileName="${basedir}/App_Data/Logs/${shortdate}/${logger}.log" />
</targets>
<rules>
<logger name="*" minlevel="Debug" writeTo="file" />
</rules>
</nlog>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment