included NLog output to console and file

main
Jonas Arnold 4 years ago
parent d57582994f
commit 3b0219a801
  1. 14
      ADIS_Csharp/RobotConsoleClient/NLog.config
  2. 6
      ADIS_Csharp/RobotConsoleClient/RobotConsoleClient.csproj

@ -0,0 +1,14 @@
<?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">
<targets>
<target name="logfile" xsi:type="File" fileName="file.txt" />
<target name="logconsole" xsi:type="Console" />
</targets>
<rules>
<logger name="*" minlevel="Trace" writeTo="logconsole" />
<logger name="*" minlevel="Debug" writeTo="logfile" />
</rules>
</nlog>

@ -11,4 +11,10 @@
<ProjectReference Include="..\RobotLib\RobotLib.csproj" />
</ItemGroup>
<ItemGroup>
<None Update="NLog.config">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None>
</ItemGroup>
</Project>

Loading…
Cancel
Save