0.0.12 • Published 5 years ago

feathers-monitor v0.0.12

Weekly downloads
-
License
ISC
Repository
-
Last release
5 years ago

Installation

Using npm:

$ npm i --save feathers-monitor

Registering Plugins

const Feathers   = require('@feathersjs/feathers');
const Express    = require('@feathersjs/express');
const Monitor, { monitorHook, before, after, error }    = require('feathers-monitor');

const app = Express(Feathers())
app.configure(SocketIO())
    .configure(Monitor({
        channel: 'MONITOR' // channel that receive server usage,
        logging: () => {
            // logging function to log monitor data.
        }
    }));

app.hooks({ before, after, error }); // App level hook should be run first & last
app.hooks({
    before: monitorHook(
        'before-test',
        (context) => {
            console.info('this hooks have been performance would be recorded');
        }
    ),
});
0.0.12

5 years ago

0.0.11

5 years ago

0.0.10

5 years ago

0.0.9

5 years ago

0.0.8

5 years ago

0.0.7

5 years ago

0.0.6

5 years ago

0.0.5

5 years ago

0.0.4

5 years ago

0.0.3

5 years ago

0.0.2

5 years ago

0.0.1

5 years ago