clientlinker-flow-logger
v5.1.8
Published
Logger flow for clientlinker
Downloads
46
Readme
Clientlinker-flow-logger
Install
Install clientlinker
pkg
npm i clientlinker --save
Install flow pkg
npm i clientlinker-flow-logger --save
Usage
var clientlinker = require('clientlinker');
var linker = clientlinker({
flows: ['logger', 'confighandler'],
clients: {
client: {
logger: function(runtime, err, data){},
confighandler: {
clientHanlder: function(query, body, callback, options) {
return Promise.resolve({result: {}});
},
}
}
}
});
linker.flow('confighandler', require('clientlinker-flow-confighandler'));
linker.flow('logger', require('clientlinker-flow-logger'));
// use
linker.run('client.clientHanlder', null, {id: 13})
.then(function(){});