0.1.4 • Published 7 years ago
logdotjs v0.1.4
Log.js
A logger that you can utilise within your projects
Instructions
Instalation
First install the module
npm install logdotjs
Then add this code snippet to your file
//
const logger = require('logdotjs');
// Initiate the logger
const log = new logger;
Info
This is used to display any sort of information you would like the user to know about
Usage:
log.info("Some information");
Success
This is used to indicate to the user that a task has been succesfully completed
Usage:
log.success("Some operation completed successfully");
Warning
This is used to display a warning
log.warn("Some warning");
Message
Use this to display any message. This gets the message from the specified url.
log.message("yoururlhere.domain");
Welcome
Use this for a welcome message. It will get your project name and version from the package.json. If you do not have a package.json file it will produce an error.
log.welcome();