logging
Super sexy logging. In colour.
Last updated 15 years ago .
MIT · Repository · Original npm · Tarball · package.json
$ cnpm install logging 
SYNC missed versions from official npm registry.

Logging Build Status

Lightweight informative modern console logging.

logging

Install

yarn add logging

Features

  • Simple.
  • Log levels.
  • Nice coloring.

Usage

// or const createLogger = require('logging');  
import createLogger from 'logging';

const logger = createLogger('FeatureName');

logger.info('Interesting');
// -> [ Feature ] Interesting

logger.warn('Hmmm...', { details });
// -> [ WARNING Feature ] Hmmm... { details object }

logger.error('Not good.', 'Not good at all.', { err }, { context }, { etc });
// -> [ ERROR Feature ] Not good. Not good at all. { err } { context } ...

// uses the debug module, use DEBUG=* or DEBUG=FeatureName to see these items.
logger.debug('Interesting');
// -> [ Feature ] Interesting

Current Tags

  • 3.3.0                                ...           latest (5 years ago)

25 Versions

  • 3.3.0                                ...           5 years ago
  • 3.2.0                                ...           9 years ago
  • 3.1.1                                ...           9 years ago
  • 3.1.0                                ...           9 years ago
  • 3.0.0                                ...           9 years ago
  • 2.0.21                                ...           13 years ago
  • 2.0.20                                ...           13 years ago
  • 2.0.19                                ...           13 years ago
  • 2.0.18                                ...           14 years ago
  • 2.0.16                                ...           14 years ago
  • 2.0.15                                ...           14 years ago
  • 2.0.14                                ...           14 years ago
  • 0.0.0                                ...           14 years ago
  • 2.0.13                                ...           14 years ago
  • 2.0.12                                ...           14 years ago
  • 2.0.11                                ...           15 years ago
  • 2.0.10                                ...           15 years ago
  • 2.0.9                                ...           15 years ago
  • 2.0.8                                ...           15 years ago
  • 2.0.0                                ...           15 years ago
  • 2.0.2                                ...           15 years ago
  • 2.0.3                                ...           15 years ago
  • 2.0.4                                ...           15 years ago
  • 2.0.6                                ...           15 years ago
  • 2.0.1                                ...           15 years ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 12
Last Month 12
Dependencies (1)
Dev Dependencies (0)
None
Dependents (2)

Copyright 2013 - present © cnpmjs.org | Home |