JSPM

  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 266
  • Score
    100M100P100Q87758F
  • License MIT

yet another logging module

Package Exports

  • yalm

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 (yalm) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

yalm - yet another logging module

Offers 4 logging levels, adds timestamp, severity and colors. Logs to stdout/stderr.

install

npm install yalm

usage

var log = require('yalm');

log.debug('a debug message');
log.info('an info', true);
log.warn('a warning', 1, 2, 3);
log.error('an error', {message: 'test!', code: 517}, new Buffer([32]));

sample output

sample output

options

You can set desired loglevel...

log.loglevel = 'debug'; // default: 'debug'. possible values: 'debug', 'info', 'warn', 'error'

... and you can turn off printing off timestamps, severity and colors

log.timestamp = false;
log.severity = false;
log.color = false;```

## license

MIT