/sweet-logger

Primary LanguageJavaScript

Sweet Logger - a nice logger for your projects!

NPM version NPM downloads Repo Size Last Commit

npm stats

This project is abandoned

It won't be maintained anymore. If you wan't to maintain it, create a fork and contact me on Discord: uQlel#9256, or by e-mail: eqd9pvyf@duck.com so I will link it there.

Table of contents

Installation

Has been tested on NPM v6.14.11 and Node.JS

npm install sweet-logger

Example usage

  • Using class "log":
    • Importing:
      global.log = require("sweet-logger").log
    • Usage:
      log("Example info usage", "info")
      log("Example ready usage", "ready")
      log("Example error usage", "error")
      log("Example warn usage", "warn")
      log("Example debug usage", "debug")
      log("Clear console.log")
  • Using log type classes
    • Importing:
      global.logger = require("sweet-logger")
    • Usage:
      logger.info("Example info usage")
      logger.ready("Example ready usage")
      logger.error("Example error usage")
      logger.warn("Example warn usage")
      logger.debug("Example debug usage")
      logger.clear("Clear console.log")

Help

For help, contact me on Discord: uQlel#9256, or by e-mail: eqd9pvyf@duck.com

Contributing

You can add something to this package and help me, pull requests are welcome on Github Repository: https://github.com/uqlel/sweet-logger

README inspired by the discord.js module