- The hook that sends data to logs service. ( registered locally )
-
Register the logs service. This service responsible for logs storage.
Example:
file:
services/logs/index.js
const Service = require('feathers-mongoose'); module.exports = function(app) { const options = {}; // definition of logs service app.use('logs', new Service(options)); // adding hook // app.service('logs').hooks(hooks); }
-
Install and register the hooks-logger,
Example:
file:
services/products/hooks.js
const logger = require('feathers-hook-logger'); module.exports = { after: [ logger() // listened to all methods ] };
- v1.1.4 - update the
nodemon dependency issue
. Details Here