JSPM

  • Created
  • Published
  • Downloads 9280
  • Score
    100M100P100Q124142F
  • License MIT

Easy, simple & beautiful logs

Package Exports

  • ee-log

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (ee-log) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

ee-log

Easy, simple & useful logging

Supported by joinbox.com, your swiss node.js & javascript agency 🚀

npm Travis

printscreen

API

The module exposes a set of methods that can be used to print colorful logs. Each of the methods accepts an unlimited amount of parameters. All of the parameters will be printed. Objects will automatically printed in an expanded form, errors will be printed in a more readable form. Each log log statement is prefixed with the exact file and line where the log statement is located.

Methods

  • debug: grey text
  • info: white text
  • warn: yellow text
  • error: red text
  • success: green text
  • highlight: violet text
log.error('not good!');

you may also use the module itself to log items

const log = require('ee-log');

log('this is awesome', {
    someValue: true
}, new Error('fancy error printing'));