A simple yet nicer logging system.
# Install with NPM
npm i nicer-logging
It has symbols and colors (which can be disabled).
const nice = require('nicer-logging');
const log = new nice.Logger();
log.info(`Hello!`);
import Nice from 'nicer-logging';
const log = new Nice.Logger();
log.info(`Hello!`);
new Logger(options)
Parameter | Type | Description | Optional | Default |
---|---|---|---|---|
useSymbols | Boolean | Whether to use symbols when logging | ✓ | true |
useColors | Boolean | Whether to use colors when logging | ✓ | true |
.info(content)
Parameter | Type | Description | Optional |
---|---|---|---|
content | String | What to log | × |
.warn(content)
Parameter | Type | Description | Optional |
---|---|---|---|
content | String | What to log | × |
.error(content)
Parameter | Type | Description | Optional |
---|---|---|---|
content | String | What to log | × |
.log(content)
Parameter | Type | Description | Optional |
---|---|---|---|
content | String | What to log | × |
.success(content)
Parameter | Type | Description | Optional |
---|---|---|---|
content | String | What to log | × |