<?xml version="1.0" encoding="utf-8" ?> <!-- XSD manual extracted from package NLog.Schema: https://www.nuget.org/packages/NLog.Schema--> <nlog xmlns="http://www.nlog-project.org/schemas/NLog.xsd" xsi:schemaLocation="NLog NLog.xsd" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" autoReload="true" internalLogLevel="Info" > <!-- the targets to write to --> <targets> <!-- write logs to file --> <target xsi:type="File" name="File" fileName="${basedir}/_logs/${shortdate}.txt" layout="${date} ${level:uppercase=true} - ${message} ${exception:format=type,message,stacktrace}" archiveEvery="Day" archiveNumbering="Rolling" maxArchiveFiles="7" /> <target xsi:type="ColoredConsole" name="Console" layout="${date} ${level:uppercase=true} - ${message} ${exception:format=type,message,stacktrace}" /> </targets> <!-- rules to map from logger name to target --> <rules> <logger name="*" minlevel="Info" writeTo="Console" /> <logger name="*" minlevel="Debug" writeTo="File" /> </rules> </nlog>