themackabu/log4you Verified Publisher
By themackabu • Updated about 2024-11-06 10:46:25 -08:00
Installation
registry=
npm install log4you@0.3.3
"log4you": "0.3.3"
About this package
log4you
A simple library for logging.
Usage
import Logger, { levels, LOG_LEVEL } from 'log4you';
const logger = new Logger({
enabled: true,
level: levels[LOG_LEVEL].priority, // based on --level=<name>
name: 'app_name',
format: '{brightCyan}%time{reset} {white}(app:%name pid:%pid%file) %color[%level]{reset}'
});
Dependencies
Development Dependencies
ID | Version |
---|---|
@types/node | ^22.9.0 |
esbuild | ^0.24.0 |
npm-dts | ^1.3.13 |
rimraf | ^6.0.1 |
typescript | ^5.6.3 |
Keywords
logger