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

https://github.com/exact-labs/log4you

📃 A simple library for logging
https://github.com/exact-labs/log4you

library logger node typescript

Last synced: 5 months ago
JSON representation

📃 A simple library for logging

Awesome Lists containing this project

README

          

# log4you

A simple library for logging.

## Usage

```ts
import Logger, { levels, LOG_LEVEL } from 'log4you';

const logger = new Logger({
enabled: true,
level: levels[LOG_LEVEL].priority, // based on --level=
name: 'app_name',
format: '{brightCyan}%time{reset} {white}(app:%name pid:%pid%file) %color[%level]{reset}',
});
```