@kundan100/clog
v1.0.0
Published
reusable npm utility to log messages
Readme
clog
A small reusable npm utility for consistent CLI logging.
Install
npm install @kundan100/clogCLI usage
npx clogLibrary usage
Use clog.* instead of console.*:
const clog = require('@kundan100/clog');
clog.info('Application started');
clog.warn('This is a warning');
clog.error('Something failed');
clog.debug('Debug details');clog also exposes the underlying logger object if you need it:
const { logger } = require('@kundan100/clog');
logger.info('Hello from logger');