0.1.0 • Published 7 years ago

log-dot-js v0.1.0

Weekly downloads
-
License
Apache-2.0
Repository
-
Last release
7 years ago

Log.js

A logger that you can utilise within your projects

Instructions

Instalation

First install the module

npm install log-dot-js

Then add this code snippet to your file

//
const logger = require('log-dot-js');

// 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();
0.1.1

7 years ago

0.1.0

7 years ago

0.0.9

7 years ago

0.0.8

7 years ago

0.0.7

7 years ago

0.0.6

7 years ago

0.0.5

7 years ago

0.0.4

7 years ago

0.0.3

7 years ago

0.0.2

7 years ago

0.0.1

7 years ago