1.0.3 • Published 4 years ago

fastlogjs v1.0.3

Weekly downloads
9
License
Apache 2.0
Repository
github
Last release
4 years ago

Fastlog JS āš”šŸ“°

Description

⚔ Supercharged console logs for your JS apps. Inspired by gabrielefronze/fastlog.

Installation

npm i --save fastlogjs 

Usage

fastlog('Just a normal log')

const level = 1;
const options = "XYZ";

fastlog(`Message ${options}`, level);
[LOG: 1/2/2021, 7:25:04 pm] Just a normal log
[INFO: 1/2/2021, 7:25:04 pm] Message XYZ

Log Levels

Fastlog provides 4 log levels -

LevelINFOUsed forColor
1INFOInfo from the server/appCyan
2WARNINGWarnings logsYellow
3SUCCESSSucces from an actionGreen
4ERRORError messagesRed
fastlog('This is an Info', 1) //INFO
fastlog('This is an Info', 2) //WARNING
fastlog('This is an Info', 3) //SUCCESS
fastlog('This is an Info', 4) //ERROR