Examine Log Files
Here is an overview of the relevant log files when working with BaaS Services.
Client Log
The BaaS Extension client log contains the activity logged for the tool in Visual Studio Code. The Log is available in the BaaS Side Bar Service Explorer view under the service node Logs, listed as Client.
The command "F1 - BaaS: View Log" shows the log.
The severity level for the log entries is by default INFO.
It can be changed in BaaS Settings "F1 - BaaS: Open Settings".
The most verbose severity level is TRACE. It's required when creating a Support Zip file (see Support Zip chapter).
If the TRACE severity level is set; the latest payload and response zip files from such server requests are stored for debugging purposes.
To open the folder location for the latest payload/response zip files, use the command "F1 - BaaS: Open Latest Zip File Location".
Handlers Logs
The BaaS service handlers logs contain the activity for a deployed BaaS service stored per handler type. The logs are available in the BaaS Side Bar Service Explorer view under the node Logs, listed as handlers or the handlers search result. The severity level for the log entries is by default INFO.
The command "Set Service Log Level" affects the log severity level of all runtime handlers for a service. To change the log level for the service: Right-click the service name and select "Set Service Log Level" from the context-menu. Optionally, use the command "F1 - BaaS: Set Service Log Level".
- Clicking the Handlers node tries to fetch it from the tenant. If not connected, it opens the latest stored on the client.
- Clicking the Handlers search result shows the latest search made if it exists; otherwise, it suggests to run the search command.
Build Log
The BaaS build log contains the output from the latest build of the BaaS service. The latest log is available in the BaaS Side Bar Service Explorer view under the service node named logs, listed as Build.
Deploy Log
The BaaS deploy log contains the output from the latest deployment of the BaaS service. The latest log is available in the BaaS Side Bar Service Explorer view under the service node named logs, listed as Deploy.
Code Scan Log
The BaaS code scan log contains the output from the latest code scan of the BaaS service. The code scan log is available in the BaaS Side Bar Service Explorer view under the service node named logs, listed as Code Scan. The code scan log contains go-to links from each finding to the position in the source code for the finding.
Viewing Handler Logs in Portal
The runtime log files for a service are also available in Portal, in the API Gateway>Backend As A Service. This is the recommended way to view logs in production environments. BaaS Extension in Visual Studio Code should not be connected to PROD tenants.