@contaquanto/qlog
v1.0.7
Published
quanto logging tool
Downloads
9
Readme
QLog
A smart logging tool, defined to be minimalist and simple.
API Cheatsheet
addFields
To be added
subScope
To be added
Log levels
info
Displays a info message
error
Displays a error message
debug
Displays a debug message
warn
Displays a warning message
Usage
import qlog from '@contaquanto/qlog';
// Main scope with fields
let log = qlog.scope('MAIN').addFields({
hue: 'br',
a: 1,
stack: 'trace'
});
log.info('INFO MESSAGE');
log.debug('DEBUG MESSAGE');
log.warn('WARNING MESSAGE');
log.error('ERROR MESSAGE');
What you need to know
- What are my scope stack?
- What are my Fields?