How to use the morgan.apply function in morgan

To help you get started, we’ve selected a few morgan examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github emech-en / mongo-morgan / index.js View on Github external
while (buffer.length !== 0) {
      entry = buffer.shift()
      mongoCollection.insert(entry)
    }
  }

  args = []
  if (format) {
    args.push(format)
  }
  if (options) {
    args.push(options)
  }

  return morgan.apply(null, args)
}

morgan

HTTP request logger middleware for node.js

MIT
Latest version published 4 years ago

Package Health Score

81 / 100
Full package analysis