Simple Log Service is integrated with Enterprise Distributed Application Service (EDAS) to provide the log feature. If you enable the log feature when you create or deploy an application in a Container Service for Kubernetes (ACK) cluster in EDAS, you can view the file logs of the application. This topic describes how to enable the log feature for an application and view the file logs of the application.
Prerequisites
Simple Log Service is activated. For more information, visit the Simple Log Service homepage.
Resources including a 0.25-core CPU and 25 MB memory are available for each instance of the application.
The log feature provided by Simple Log Service is enabled for the application.
For an ACK cluster, you must enable the log feature when you create or deploy the application. For more information, see Use an image to deploy a Java microservices application in a Kubernetes cluster or Use a JAR or WAR package to deploy an application in an ACK cluster.
Procedure
Log on to the EDAS console.
In the left-side navigation pane, choose .
In the top navigation bar, select the region of the application for which the log feature is enabled. In the upper part of the Applications page, select the microservices namespace of the application. Click the name of the application.
In the left-side navigation pane of the application overview page, click Logs. Then, click the File Logs tab.
On the File Logs tab, find the file log that you want to view and click View File Log in the Actions column.
Query and analyze the file log in the Simple Log Service console. For more information, see Query and analyze logs.