Has been tested on NPM v6.14.11 and Node.JS
npm install sweet-logger
- 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")
- Importing:
- 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")
- Importing:
For help, contact me on Discord: uQlel#9256, or by e-mail: [email protected]
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