Request and System Logs
When it comes to debugging, there are two types of logs that can be very helpful: Request Logs and System Logs. You can take advantage of logs in Testfully to debug a wide range of issues and get insights into the underlying HTTP calls.
Request Logs
When sending requests, you can use console.log() and friends to log useful information during the request execution. These logs will appear in the Logs tab of the request response panel. If you're interested in more detailed information about the request execution, you need System Logs, which are covered in the next section.
System Logs
Testfully also maintains system logs that capture important events and errors as they appear in the application. The logs contain a variety of information such as low-level information about sending actual HTTP requests, errors encountered during the execution of requests, or other important events. You can access logs and adjust verbosity level of the produced logs to meet your debugging needs. In this section, we will explore how to access and utilize system logs in Testfully.
Accessing System Logs
To access system logs, follow these steps:
Click on the User Menu located at the bottom-left corner of the Testfully application (both Web and Desktop versions), represented by your first name initial, and workspace initials.
From the dropdown menu, select Settings to open the Settings panel.
In the Settings panel, check the Log Level section to view and adjust the verbosity level of the logs.
Use the Log File Location section to find the location of the log files on your system. You can open the folder containing the log files by clicking on the folder icon next to the path.
System Logs in Browser
In the Web version of Testfully, system logs are stored in the browser's Console tab. To access them, open the browser's Developer Tools (usually by pressing F12 or Ctrl+Shift+I), and navigate to the Console tab. Here, you will find the system logs generated by Testfully.
Please note that the Web version of Testfully has limitations in terms of logging capabilities compared to the Desktop version. For more advanced logging features, consider using the Desktop version of Testfully.
Adjusting Log Levels
By default, Testfully captures error-level logs. However, you can adjust the log level to capture more detailed information. The available log levels are:
- Error: Logs only error messages.
- Warning: Logs warnings and error messages.
- Info: Logs informational messages, warnings, and error messages.
- Debug: Logs detailed debugging information, informational messages, warnings, and error messages.
- Trace: Logs the most detailed information, including all debug information, informational messages, warnings, and error messages.
- Off: Disables logging.
Debug and Trace levels are recommended for troubleshooting issues with HTTP requests, as they provide the most comprehensive information about the request lifecycle. Keep in mind that higher log levels may generate a large volume of logs, which could impact performance. Please make sure to switch back to a lower log level once you have finished debugging.
The changes to the log level take effect immediately, and you do not need to restart the application. To permanently save the log level setting, make sure to click the Save button at the bottom of the Settings panel.