quant-beat
Version:
**`Quant Beat`** is a simple logger that wraps around [lugg](https://github.com/aexmachina/lugg "lugg") which is in itself, a simple wrapper around [bunyan](https://github.com/trentm/node-bunyan "bunyan") (a powerful logging framework). **`Quant Beat`**
26 lines (21 loc) • 625 B
JavaScript
const Logger = require('../index').logger
const logger = new Logger({mainMethod: test})
function test () {
doLoging().then(doLogingAgain)
.then(doLogingOneMoreTime)
.then(() => 0)
}
const doLoging = () => {
logger.info('Started Loggin', 'Iam a replacement', {user: 'George'}, {car: 'Toyota'})
return Promise.resolve('done1')
}
const doLogingAgain = () => {
logger.info('Started Logging Againb')
return Promise.resolve('done1 Again')
}
const doLogingOneMoreTime = () => {
logger.info('Doing logging one more time')
return Promise.resolve('doLogingOneMoreTime Again')
}
// test()