Enabling Detailed Logging for .NET Runners

Last modified: 20 April 2023

To enable debug logging for investigating process launch issues for .Net-related runners:

set 'teamcity.agent.dotnet.debug' Configuration and Build Parameters to 'true' in a build configuration or on agent. The detailed logging should be printed into build log on the next build.

Alternatively, you can adjust log4net configuration directly:

  1. Open the <agent home>/plugins/dotnetplugin/bin folder.

  2. Open teamcity-log4net.xml with any text editor, for example, Microsoft Notepad.

  3. Make a backup copy.

  4. Set logging level to DEBUG. To do so, replace the original lines: <root> <level value="WARN" /> <appender-ref ref="ConsoleAppender" /> <appender-ref ref="RollingFileAppender" /> </root> with the following new ones: <root> <level value="DEBUG" /> <appender-ref ref="ConsoleAppender" /> <appender-ref ref="RollingFileAppender" /> </root>