log-cli
A simple logger for node cli, it wraps around chalk and ora package.
Installation
npm install log-cli
or
yarn add log-cli
Usage:
const Logger = const logger = ;logger;// prints the success message in green colorlogger;// prints the message with the default prefixlogger;
Examples
Methods
warn, success, error, log, info, bold, spin, spinStart, spinStop
Change the default colors of logging
Default color mapping
You can override colors using the setColor
method like below
logger;