1.0.0 • Published 3 years ago

tinylogger-js v1.0.0

Weekly downloads
-
License
MIT
Repository
github
Last release
3 years ago

TinyLogger

A Tiny and Basic Logging API for JavaScript/TypeScript.

Usage

The logger can be accessed by importing Logger from TinyLogger. It can serve 3 logging methods:

  • logConsoleOnly: This will log to the NodeJS console only.
  • logFileOnly: This will log it to a file located under <execution_path>/logs.
  • logAll: This logs to both console AND a file.

The logger has 4 types of logging information in form of an enum called LogType. It has the values: "INFO", "WARN", "ERROR", "FATAL". You can get the package from Node Package Manager (NPM) via the command: npm i tinylogger.