Set up logging for test execution via Remote Service
You can configure one or both of the following logging options:
-
A workspace log level, i.e. a protocol of activities concerning the workspace that executes your tests.
-
A log for all activities of the Remote Service, such as when it starts or finishes the execution of your tests.
Change the workspace log level
You can change the level of detail in your workspace log.
The available range is 4 to 12. A value of 4 provides you with the least detailed log, a value of 12 with the most detailed log. By default, the value is set to 4.
To change the default log level, follow the steps below:
-
Access the ToscaCIRemoteExecutionService.exe.config file which is located at %COMMANDER_HOME%\ToscaCI.
-
In the userSettings section, enter a LogLevel value from the available range.
<userSettings>
[...]
<setting name="LogLevel" serializeAs="String">
<value>6</value>
</setting>
[...]
</userSettings>
Tricentis Tosca saves the log file to the workspace folder.
Set up the Remote Service log
You can change what information the log records.
By default, the Remote Service log records on the INFO level. To change this, follow the steps below:
-
Access the ToscaCIRemoteExecutionService.exe.config file which is located at %COMMANDER_HOME%\ToscaCI.
-
In the log4net section, adjust the root setting level value. You can define one of the following values:
Value |
Description |
---|---|
ALL |
Includes all information. Use this level for development purposes. |
DEBUG |
Creates a log for Tricentis Support. |
INFO |
This is the default log level. It includes general information, such as when the agent was started or stopped. |
ERROR |
Logs any error which is fatal to the operation and requires action, such as timeouts or failure to establish a server connection. |
OFF |
Logging is deactivated. |
In the example below, the log records on DEBUG level:
<log4net>
<root>
<level value="DEBUG" />
<appender-ref ref="LogFileAppender" />
<appender-ref ref="ConsoleAppender" />
</root>
[...]
</log4net>
Tricentis Tosca saves the log file ToscaCIRemoteExecutionService.log to the directory %COMMANDER_HOME%\ToscaCI.