node-log-it
v2.0.0
Published
A simple multi-level logger for node.js console.
Downloads
323
Readme
node-log-it
A simple multi-level logger for node.js console.
Installation
npm install node-log-it
Usage
Reference:
const Logger = require('node-log-it').default
or
import Logger from 'node-log-it'
Usage:
const logger = new Logger('example-2', { level: 'info' })
logger.info('Hello', 'World')
Examples
Run a JavaScript example:
node examples/basic.js
Run a TypeScript example:
./node_modules/.bin/ts-node examples/typescript.ts