{"size": 273, "ext": "js", "max_stars_repo_path": "src/middleware/logger.js", "max_stars_repo_name": "sancau/koalition", "max_stars_repo_stars_event_min_datetime": "2016-07-26T09:31:29.000Z", "max_stars_repo_stars_event_max_datetime": "2016-07-26T09:31:41.000Z", "max_issues_repo_path": "src/middleware/logger.js", "max_issues_repo_name": "sancau/koalition", "max_issues_repo_issues_event_min_datetime": null, "max_issues_repo_issues_event_max_datetime": null, "max_forks_repo_path": "src/middleware/logger.js", "max_forks_repo_name": "sancau/koalition", "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_forks_event_max_datetime": null}
{"max_stars_count": 2, "max_issues_count": null, "max_forks_count": null, "avg_line_length": 24.8181818182, "max_line_length": 94, "alphanum_fraction": 0.6263736264}

'use strict';

module.exports = function* Logger(next) {
  if (!this.state.start) {
    this.state.start = new Date;
  }
  yield next;
  var ms = new Date - this.state.start;
  console.log(`[${this.method}] responded [${this.status}] in ${ms} ms from url ${this.url}`);
};