LoggerMiddleware.ts 445 B

1234567891011121314
  1. import { Middleware } from '../base/http';
  2. import { NextFunction, Request, Response } from 'express';
  3. // import { Logger } from '../base/logger';
  4. class LoggerMiddleware extends Middleware {
  5. protected order = -97;
  6. protected route = null;
  7. // protected action = (<Logger>this.context.getLogger()).getHttpLogger();
  8. protected action = (res: Response, req: Request, next: NextFunction): any => {
  9. next();
  10. };
  11. }
  12. export default LoggerMiddleware;