stoshiya/express-fluent-logger

View on GitHub
index.js

Summary

Maintainability
A
0 mins
Test Coverage

Function expressFluentLogger has 50 lines of code (exceeds 25 allowed). Consider refactoring.
Wontfix

exports = module.exports = function expressFluentLogger(tag, options) {
  if (typeof tag === 'object') {
    options = tag;
    tag = 'debug';
  }
Severity: Minor
Found in index.js - About 2 hrs to fix

    Function emitHandler has 31 lines of code (exceeds 25 allowed). Consider refactoring.
    Wontfix

        function emitHandler() {
          res.removeListener('finish', emitHandler);
          res.removeListener('close',  emitHandler);
          var logObject = {
            'timestamp':      start.getTime(),
    Severity: Minor
    Found in index.js - About 1 hr to fix

      There are no issues that match your filters.

      Category
      Status