qantra-logx
v1.0.4
Published
logx logging package
Downloads
1
Readme
Qantra LOGX
Qantra LOGX
const logx = require('./index.js').debug('app.js');
//listen to namespace LogxEvent
logx.event.register('app.js:error', (obj)=>{
logx.info(`${obj.level}: ${obj.namespace} : ${obj.message}`);
});
logx.error('Testing Error');
logx.warn({text: 'data'});
logx.debug('here');
logx.silly(JSON.stringify({x:{y:'y'}}));
logx.http('time: 43')