Log all incoming requests from Express

Since
  • 1.0.0
Author
  • Glenn de Haan

Example

const {Runtime, Server} = require('@neobeach/core');
const requestLogger = require('@neobeach/middlewares-request-logger');

const server = new Server();

Runtime(() => {
   server.loadMiddlewares([requestLogger()]);
   server.run();
});