项目作者: arshadkazmi42

项目描述 :
:heavy_check_mark: Simple logger with titles
高级语言: JavaScript
项目地址: git://github.com/arshadkazmi42/ak-logger.git
创建时间: 2018-02-22T11:02:54Z
项目社区:https://github.com/arshadkazmi42/ak-logger

开源协议:GNU General Public License v3.0

下载


ak-logger

Build
NPM Version
NPM Downloads
Github Repo Size
LICENSE
Contributors
Commit

How to install?

NPM

How to use?

  1. var log = require('ak-logger');
  2. const person = { name: 'Gustavo', age: 23 }
  3. // Printing debug log as an object
  4. log.debug(person, "DEBUG LOGS");
  5. /* Result
  6. =====DEBUG LOGS=====
  7. { name: 'Gustavo', age: 23 }
  8. =====DEBUG LOGS=====
  9. */
  10. // Printing debug log as an string (stringify = true)
  11. log.debug(person, "DEBUG_LOGS", true)
  12. /* Result
  13. =====DEBUG_LOGS=====
  14. {"name":"Gustavo","age":23}
  15. =====DEBUG_LOGS=====
  16. */

Contributing Guidelines

Read the contributing guidelines here