Permalink
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
13 lines (11 sloc) 359 Bytes
/// <reference path="../_all.d.ts" />
import express = require("express");
let requestLogger: express.RequestHandler = (
request: express.Request,
response: express.Response,
next: express.NextFunction
) => {
console.info(`${(new Date()).toUTCString()}|${request.method}|${request.url}|${request.ip}`);
next();
};
export = requestLogger;