lw-metrics

0.2.4 • Public • Published

This is the README.md for "metrics-svc".

Use var Metrics = require("lw-metrics"); var express = require("express");

var metrics = new Metrics(, [, ]);

var app = express();

app.use(metrics.RequestLogger());

the logger is the instanciated lw-logger object

the metrics-svc is the url that can be used to send an http call to for logging requests to the db.

the morgan-string is spec-ed by the morgan npm express middleware ("https://www.npmjs.com/package/morgan") But for this module each property should be seperated by a " | ": ":date[iso] | :method"

To log the ResponseTime use the ResponseTime function as middleware before the RequestStore function

Readme

Keywords

none

Package Sidebar

Install

npm i lw-metrics

Weekly Downloads

4

Version

0.2.4

License

ISC

Last publish

Collaborators

  • lwret