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!
- Host: GitHub
- URL: https://github.com/devdeem/term-logger
- Owner: devdeem
- License: apache-2.0
- Created: 2023-06-29T16:09:23.000Z (almost 3 years ago)
- Default Branch: main
- Last Pushed: 2024-04-26T14:57:41.000Z (about 2 years ago)
- Last Synced: 2024-05-02T05:20:59.886Z (about 2 years ago)
- Topics: colors, console-log, discord, logger, term-logger
- Language: TypeScript
- Homepage: https://www.npmjs.com/package/term-logger
- Size: 615 KB
- Stars: 4
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Funding: .github/FUNDING.yml
- License: LICENSE
Awesome Lists containing this project
README
A simple & fast logger for better console formatted output!
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 ❤️