Last Sync: 2022-04-27 08:00:43
This commit is contained in:
parent
8588b3be5f
commit
3c5e652d52
51 changed files with 9 additions and 1 deletions
|
@ -89,5 +89,13 @@ With Morgan in place, every time we run a request it will be logged on the conso
|
|||
|
||||
```plain
|
||||
GET /api/courses 200 95 - 1.774 ms
|
||||
```
|
||||
This uses the `tiny` default which logs the bare minimum giving us: request type; endpoint; response code; and time to execute.
|
||||
|
||||
```
|
||||
It defaults to logging on the console but can also be configured to write to a log file.
|
||||
|
||||
## Including middlewear based on environment
|
||||
With a full-scale Node application you will typically run three environments:
|
||||
* Development
|
||||
* Testing
|
||||
* Production
|
Binary file not shown.
BIN
pdf/Arrays.pdf
BIN
pdf/Arrays.pdf
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
BIN
pdf/Queue.pdf
BIN
pdf/Queue.pdf
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
BIN
pdf/Stacks.pdf
BIN
pdf/Stacks.pdf
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Loading…
Add table
Reference in a new issue