@maur025/core-logger
v1.0.0
Published
utility library to logger with winston and chalk for backend node.
Maintainers
Readme
Overview
Utility library to logging in console.
Installation
Use the following command to install:
Using pnpm:
pnpm add @maur025/core-loggerUsing npm:
npm install @maur025/core-loggerUsing yarn:
yarn add @maur025/core-loggerUSAGE
Add the next variables in to .env:
LOG_PATH='silly'
LOG_PATH=logsLevel can be any value of RFC5424
const levels = {
error: 0,
warn: 1,
info: 2,
http: 3,
verbose: 4,
debug: 5,
silly: 6,
};