Total.js Platform news and tutorials
Create a definition file e.g. /definitions/logging.js:
/definitions/logging.js
F.on('request', function(req) { req.$begin = Date.now(); req.on('end', () => console.log(req.ip, req.method, req.url, '[' + ((Date.now() - req.$begin) / 1000) + 's]')); });