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.
error
success
warn
waiting
complete
debug
fatal
info
note
pending
start
watch
critical
ready
command
event
database
shard
cluster
const { Logger } = require("term-logger");
Logger.error(new Error("..."));
Logger.success("...");
// and 17 more logs...
View all of the available colors.
red
green
yellow
blue
purple
cyan
white
gray
const { TextColors } = require("term-logger");
TextColors.red("...");
TextColors.blue("...");
// and 6 more colors...
View all of the available text styles.
bold
dim
italic
underline
inverse
hidden
strikethrough
visible
const { TextStyles } = require("term-logger");
TextStyles.italic("...");
TextStyles.underline("...");
// and 7 more text styles...
View all of the available background options.
red
green
yellow
blue
purple
cyan
white
gray
const { BgColors } = require("term-logger");
BgColors.red("...");
BgColors.blue("...");
// and 6 more colors...
View all of the available bright colors.
red
green
yellow
blue
purple
cyan
white
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.