You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -27,11 +27,11 @@ az configure --defaults spring-cloud=<service instance name>
27
27
In following examples, the resource group and service name will be omitted in the commands.
28
28
29
29
### Tail log for app with single instance
30
-
If an app named auth-service has only one instance, you can view the instance log with below command:
30
+
If an app named auth-service has only one instance, you can view the instance log with following command:
31
31
```
32
32
az spring-cloud app log tail -n auth-service
33
33
```
34
-
This will return logs in the following format:
34
+
This will return logs:
35
35
```
36
36
at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:118) ~[spring-web-5.1.9.RELEASE.jar!/:5.1.9.RELEASE]
37
37
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193) ~[tomcat-embed-core-9.0.22.jar!/:9.0.22]
@@ -52,12 +52,12 @@ This will return logs in the following format:
52
52
```
53
53
54
54
### Tail log for app with multiple instances
55
-
If multiple instances exist for the app named auth-service, you can view the instance log with following command. The name `auth-service-default-12-75cc4577fc-pw7hb` identifies one of the instance of the app.
55
+
If multiple instances exist for the app named `auth-service`, you can view the instance log with following command. The name `auth-service-default-12-75cc4577fc-pw7hb` identifies one of the instance of the app.
56
56
```
57
57
az spring-cloud app log tail -n auth-service -i auth-service-default-12-75cc4577fc-pw7hb
58
58
```
59
59
### Follow log for app
60
-
By default, CLI will only print the existing log to console without following new logs. If you need to track the new logs, use -f(--follow) to track the new logs:
60
+
By default, CLI will only print the existing log to console without following new logs. If you need to track the new logs, use `-f(--follow)` to track the new logs:
0 commit comments