File size: 1,040 Bytes
ebffcb3
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
---
Order: 5
Area: nodejsdeployment
TOCTitle: Viewing logs
PageTitle: Viewing logs
MetaDescription:
MetaSocialImage:
DateApproved: 10/5/2017
ShortDescription:
---
# Viewing Logs

In this step, you will view (or "tail") the logs from the running Website. Any calls to `console.log` in the site will be displayed in your terminal.

Run the following Azure CLI command.

```bash
$ az webapp log tail --name myExpressApp-chrisdias
```

After a few seconds, you should see a message indicating that you are connected to the log-streaming service.

```bash
2017-04-17T19:55:35  Welcome, you are now connected to log-streaming service.
```

Refresh the page a few times in the browser and you'll see log output.

```bash
GET / 304 1.704 ms - -
GET / 304 0.935 ms - -
GET / 304 0.490 ms - -
```

----

 <a class="tutorial-next-btn" href="/tutorials/nodejs-deployment/publishing-changes">I can see my logs</a> <a class="tutorial-feedback-btn" onclick="reportIssue('node-deployment', 'tailing-logs')" href="javascript:void(0)">I ran into an issue</a>