Adding logging

A web server should provide some form of log data, particularly of incoming requests and their responses before it can be considered production worthy.

In this recipe, we will look at using pino, which is a high performance JSON logger with Express. In the There's more... section we'll look at alternative loggers and integrating logging into Koa and Hapi.