term-logger
TypeScript icon, indicating that this package has built-in type declarations

1.3.1 • Public • Published
TermLogger-Banner

A simple & fast logger for better console formatted output!

version collaborators downloads licence

Getting Started

Installation

Using NPM:

npm install term-logger

Using YARN:

yarn add term-logger

Usage

Logger Options

  • 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...

TextColors Options

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...

TextStyles Options

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...

BgColors Options

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...

BrightColors Options

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...

Do you have any issues?

If you have any issues don't hesitate to report it via GitHub Issues.

Sponsor Us ❤️

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.

> Developed by @deemdev with ❤️

Package Sidebar

Install

npm i term-logger

Weekly Downloads

61

Version

1.3.1

License

Apache-2.0

Unpacked Size

30.5 kB

Total Files

30

Last publish

Collaborators

  • deemlol