This is an example project to log HTTP requests to the console in node.
Require the module with:
const { status } = require('lil-logger')
Include the status function in your routes. Basic example:
response.writeHead(200, { 'Content-Type': contentType }) status(response.statusCode, request.method, request.url, error) response.end(content, 'utf-8')