Slide 13
Slide 13 text
How To Log
What and How to Log
Pretty Print for local development.
Muted for automated testing.
JSON output for production.
[2021-04-10T13:05:32.712Z] ▶ notice /app/services.boot.js - Booting Services...
1
{"level":"notice","severity":5,"dt":"2021-04-
10T13:04:03.215Z","message":"Booting Services...","context":{"runtime":
{"application":"skgbot"},"source":
{"file_name":"/app/services.boot.js"},"system":
{"hostname":"192.168.1.74","pid":49862,"process_name":"/Users/thanpolas/.nvm/ver
sions/node/v14.15.5/bin/node"}},"event":{}}
1
Pretty Print
JSON