Skip to content

Commit d05cbd7

Browse files
committed
Link to heading is dubious
1 parent de300e2 commit d05cbd7

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

articles/spring-cloud/howto-log-streaming.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ The log streaming feature makes application logs available instantly using CLI w
1515
## Prerequisites
1616

1717
* Install the [Azure CLI extension](./spring-cloud-quickstart-launch-app-cli#install-the-azure-cli-extension)
18-
* Launch [Spring Cloud app](./spring-cloud-launch-app-maven)
18+
* Launch [Spring Cloud app](./spring-cloud-quickstart-launch-app-maven.md)
1919

2020
## Use CLI to tail logs
2121

@@ -27,11 +27,11 @@ az configure --defaults spring-cloud=<service instance name>
2727
In following examples, the resource group and service name will be omitted in the commands.
2828

2929
### 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:
3131
```
3232
az spring-cloud app log tail -n auth-service
3333
```
34-
This will return logs in the following format:
34+
This will return logs:
3535
```
3636
at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:118) ~[spring-web-5.1.9.RELEASE.jar!/:5.1.9.RELEASE]
3737
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:
5252
```
5353

5454
### 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.
5656
```
5757
az spring-cloud app log tail -n auth-service -i auth-service-default-12-75cc4577fc-pw7hb
5858
```
5959
### 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:
6161
```
6262
az spring-cloud app log tail -n auth-service -f
6363
```

0 commit comments

Comments
 (0)