An open API service indexing awesome lists of open source software.

https://github.com/devdeem/term-logger

A simple & fast logger for better console formatted output!
https://github.com/devdeem/term-logger

colors console-log discord logger term-logger

Last synced: about 1 year ago
JSON representation

A simple & fast logger for better console formatted output!

Awesome Lists containing this project

README

          


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`


```js
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`


```js
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`


```js
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`


```js
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`


```js
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 ❤️