Skip to content

alwinn1977/es6-turbo-logger

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

es6-turbo-logger

Downloads Downloads npm version dependencies dev dependencies License

Useful logger for ES6 applications. It provides log() function that replaces the standard console.log() function and outputs passed arguments in browser console as a group, indicating the names of the variables/constants that were passed. Optionally, you can specify group label.

Getting Started

Install it via npm:

npm install es6-turbo-logger

And include in your project:

import log from 'es6-turbo-logger';

Then use log() function instead standard console.log(), passing objects as a first argument in object wrapper:

const a = 'Hello';
let b = 'World';
const c = a.b;
log({a,b,c});

In the browser console it will look like this:

es6-turbo-logger

Optionally you can specify group label as a second argument:

const a = 'Hello';
let b = 'World';
const c = a.b;
log({a,b,c}, 'Group Label');

In the browser console it will look like this:

es6-turbo-logger

License

MIT

About

Useful logger for ES6 applications.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published