A simple & fast logger for better console formatted output!
npm install term-logger
yarn add term-logger
- Import term-logger and start using any of the default loggers and colors.
View all of the available logger options.
errorsuccesswarnwaitingcompletedebugfatalinfonotependingstartwatchcriticalreadycommandeventdatabaseshardcluster
const { Logger } = require("term-logger");
Logger.error(new Error("..."));
Logger.success("...");
// and 17 more logs...View all of the available colors.
redgreenyellowbluepurplecyanwhitegray
const { TextColors } = require("term-logger");
TextColors.red("...");
TextColors.blue("...");
// and 6 more colors...View all of the available text styles.
bolddimitalicunderlineinversehiddenstrikethroughvisible
const { TextStyles } = require("term-logger");
TextStyles.italic("...");
TextStyles.underline("...");
// and 7 more text styles...View all of the available background options.
redgreenyellowbluepurplecyanwhitegray
const { BgColors } = require("term-logger");
BgColors.red("...");
BgColors.blue("...");
// and 6 more colors...View all of the available bright colors.
redgreenyellowbluepurplecyanwhite
const { BrightColors } = require("term-logger");
BrightColors.red("...");
BrightColors.blue("...");
// and 6 more colors...If you have any issues don't hesitate to report it via GitHub Issues.
Do you use Term Logger and are you satisfied?
You can support us with a one-time donation to help us improve our
work here.
