Where are the logs while NUnit is running?

I am running NUnit tests from Resharper. I want to track the execution process, so my question is, where can I find the logs created in my application?

I use NLog, login output path is relative, for example. logs\mylog.txt.

+3
source share
1 answer

I have a similar setup with my current project and unit tests, my NLog output goes to \ UnitTests \ bin \ Debug \ Logs. The logger is configured as follows in NLog.config (this creates a daily log file):

<target name="FileLog" xsi:type="File" fileName="${basedir}/logs/${shortdate}_log.txt"


NLog, throwExceptions, internalLogLevel internalLogFile NLog.config :

<nlog xmlns="http://www.nlog-project.org/schemas/NLog.xsd"
      xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
      throwExceptions="true"
      internalLogLevel="Debug"
      internalLogFile="nlog_log.log">

, , , , .

+6

Source: https://habr.com/ru/post/1780194/


All Articles