1.0.2 • Published 8 years ago

rgb-log v1.0.2

Weekly downloads
2
License
MIT
Repository
github
Last release
8 years ago

Rgb Log

Rgb Log is a library that allows you to take and style your front end console logs in the browser. Works with chrome and Firefox.

npm.io

Check examples.js file for all custom logs

Getting Started

Simply include it as a script tag in your project:

<script src="colors.js"></script>

Set your console log size

set your size for your console log Call one of the logs with either small medium large or extra large console logs

color.log.smallLog(consolelog,color)

Set your infromation you want to log

color.log.smallLog(
  "Example log",
);

Set your console log color from the list below

  • red
  • green
  • gold
  • blue
  • magenta
  • cyan
  • gray

To set the color follow the example below

color.textColor.YORCOLOR HERE AKA red green ....

Examples for putting it all together:

color.log.smallLog(
    "Example log",
     color.textColor.red
);

color.log.mediumLog(
    "Example log",
    color.textColor.green
);

color.log.largeLog(
    "Example log",
    color.textColor.gold
);

Creating special error checking logs

There are three different error checking logs fail warning and success

To call them follow the example below

color.log.errorFailed("Example log");

color.log.errorWarning("Example log");

color.log.logscucess("Example log");
);

Contribute

This GitHub project is open to contributions. Just fork the project and send over that pull request.