@diegoso4/simple-logger
v1.0.0
Published
Beautifull logger colorized
Downloads
2
Readme
Simple Logger 📝
Simple Logger is an easy to use logging library for JavaScript and Typescript, more focused for nodejs or wherever you want to use it, no third party libraries needed.
Characteristics ✨
- Simple and efficient logging of messages including the line where the log message is established
- Configurable log levels:
debug
,info
,warn
anderror
. - Function type indicator ( 🔧 Constructor, ⚙️ Function ).
- Ability to customize the format of log messages.
Installation 🚀
To use Simple Logger in your project, you can install it via npm or Yarn:
// with npm
npm install simple-logger
// with yarn
yarn add simple-logger
Usage 🔥
JavaScript
const Logger = require('simple-logger');
Logger.clearLog('This is an -clearLog- message')
Logger.errorLog('This is an -errorLog- message')
Logger.infoLog('This is an -infoLog- message')
Logger.successLog('This is an -successLog- message')
Logger.testLog('This is an -testLog- message')
Logger.warningLog('This is an -warningLog- message')
Typscript
import { clearLog, errorLog, infoLog, successLog, testLog, warningLog } from 'simple-logger'
clearLog('This is an -clearLog- message')
errorLog('This is an -errorLog- message')
infoLog('This is an -infoLog- message')
successLog('This is an -successLog- message')
testLog('This is an -testLog- message')
warningLog('This is an -warningLog- message')