1.0.4 • Published 2 years ago

openlogger-node v1.0.4

Weekly downloads
-
License
ISC
Repository
github
Last release
2 years ago

openlogger-node

the code inside is really bad, so maybe improve it with a pull request, looking for a friend

Usage

Installing

npm install openlogger-node

Coding part thing

import openlogger from 'openlogger-node'
import chalk from 'chalk'
const log = new openlogger('Test', chalk.green, { // you can just make color null if you want it to be white
    format: '[%n/%l]: %m',
    debugLevel: 0,
})

log.info('hello world')

warn, error, and fatal will ignore colors, the color argument is for info

%n - Name

%m - Input

%l - Level (info, warn, error, fatal)

1.0.4

2 years ago

1.0.3

2 years ago

1.0.2

2 years ago

1.0.1

2 years ago

1.0.0

2 years ago