ak-logger

1.1.2 • Public • Published

ak-logger

npm version Dependencies npm Downloads Codacy Badge

How to install?

NPM

How to use?

var log = require('ak-logger');
 
const person = { name: 'Gustavo', age: 23 }
 
// Printing debug log as an object
log.debug(person, "DEBUG LOGS");
/* Result
 
=====DEBUG LOGS=====
{ name: 'Gustavo', age: 23 }
=====DEBUG LOGS=====
*/
 
// Printing debug log as an string (stringify = true)
log.debug(person, "DEBUG_LOGS", true)
/* Result
 
=====DEBUG_LOGS=====
{"name":"Gustavo","age":23}
=====DEBUG_LOGS=====
*/
 
 

Contributors

Contributing Guidelines

Read the contributing guidelines here

Package Sidebar

Install

npm i ak-logger

Weekly Downloads

3

Version

1.1.2

License

ISC

Unpacked Size

45.3 kB

Total Files

10

Last publish

Collaborators

  • arshadkazmi42