Viewing Build Agent Logs

Last modified: 20 April 2023

TeamCity uses Log4J for internal logging of events. Default build agent Log4J configuration file is <agent home>/conf/teamcity-agent-log4j.xml Build agent logs are placed into <agent home>/logs directory.

Log Files



You can configure location of the logs by altering the value of teamcity_logs property (passed to JVM via -D option). You can also change Log4J configuration file location by changing value of log4j.configuration property. See corresponding documentation Configuring Build Agent Startup Properties on how to pass the options.

For additional option on logging tweaking please consult TeamCity Server Logs section.