@contaquanto/qlog
TypeScript icon, indicating that this package has built-in type declarations

1.0.7 • Public • Published

QLog

A smart logging tool, defined to be minimalist and simple.

API Cheatsheet

addFields

To be added

subScope

To be added

Log levels

info

Captura-de-Tela-2019-08-28-a-s-20-20-52

Displays a info message

error

Captura-de-Tela-2019-08-28-a-s-20-24-58

Displays a error message

debug

Captura-de-Tela-2019-08-28-a-s-20-20-46

Displays a debug message

warn

Captura-de-Tela-2019-08-28-a-s-20-25-05

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?

Package Sidebar

Install

npm i @contaquanto/qlog

Weekly Downloads

1

Version

1.0.7

License

MIT

Unpacked Size

14.1 kB

Total Files

10

Last publish

Collaborators

  • gleice.galdino
  • upnic