3.3.0 • Published 3 years ago
logging v3.3.0
Logging
Lightweight informative modern console 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
3.3.0
3 years ago
3.2.0
7 years ago
3.1.1
7 years ago
3.1.0
7 years ago
3.0.0
7 years ago
2.0.21
11 years ago
2.0.20
11 years ago
2.0.19
11 years ago
2.0.18
12 years ago
2.0.16
12 years ago
2.0.15
12 years ago
2.0.14
12 years ago
0.0.0
12 years ago
2.0.13
12 years ago
2.0.12
13 years ago
2.0.11
13 years ago
2.0.10
13 years ago
2.0.9
13 years ago
2.0.8
13 years ago
2.0.6
13 years ago
2.0.4
13 years ago
2.0.3
13 years ago
2.0.2
13 years ago
2.0.1
13 years ago
2.0.0
13 years ago