Skip to main content

Log

This article introduces how to configure and query logs on the development platform.

Log Collection

The TCBR service collects standard output content from containers by default, but the collected content can be configured.

By modifying the log collection path in service settings, you can collect multiple types of content:

  • stdout : Collects only standard output
  • stdout,stderr : Collects both standard output and error output
  • stdout,/path/to/file : Collects standard output and the log file at the specified path
  1. Go to CloudBase and switch to the specified environment as needed.

  2. Go to Compute - Cloud Hosting service.

  3. Select the service you want to view, and click the service name to go to the service details page.

  4. Click "Logs" to switch to the Logs tab and view log data for the current service and all its versions.

Log Description

Service Access Logs, Business Logs Generated by Access

Service access logs include request logs when accessing the service and business logs generated during the requests.

Service request logs are identified by the logType of accesslog, containing information such as request path, request method, request start time, response time, time consumed, response status, etc.

The request logs are accompanied by related business logs, which are the content printed in the business code; typically, any log printing added during request processing will appear in the business logs.

By clicking the business logs in the service request log operations, you can view the business logs corresponding to the current request.

Stdout Logs

Logs not printed along with service access logs, such as those generated during service startup or during background operation, can be queried in Stdout Logs.

Switch to the Stdout Logs category to query the specific log content.

Log Differentiation for Service Versions

Running instances of service versions are all tagged with version identifiers, such as 001, 002, 003. In the logs, you can filter by version identifier to query logs for specific versions.