sbx-moleculer-logger-tracer
v1.0.1
Published
loger settings and custom tracer for moleculer
Downloads
48
Maintainers
Readme
sbx-moleculer-logger-tracer
Pre requirements: sbx-logger, moleculer
Install
npm i moleculer
npm i sbx-logger
npm i sbx-moleculer-logger-tracer
Usage
const {ServiceBroker, Errors: {MoleculerError}} = require('moleculer')
const {logs} = require('sbx-logger')
const {tracing, logger} = require('sbx-moleculer-logger-tracer')
logs({warn: [MoleculerError]})
const broker = new ServiceBroker({
logger,
tracing,
})