1.0.0 • Published 9 months ago

@maur025/core-logger v1.0.0

Weekly downloads
-
License
MIT
Repository
github
Last release
9 months ago

Overview

Utility library to logging in console.

Installation

Use the following command to install:

Using pnpm:

pnpm add @maur025/core-logger

Using npm:

npm install @maur025/core-logger

Using yarn:

yarn add @maur025/core-logger

USAGE

Add the next variables in to .env:

LOG_PATH='silly'
LOG_PATH=logs

Level can be any value of RFC5424

const levels = {
	error: 0,
	warn: 1,
	info: 2,
	http: 3,
	verbose: 4,
	debug: 5,
	silly: 6,
};
1.0.0

9 months ago