A Colorful Console.log
Inspired by firebugs style prefix effects - %c
Examples - https://coderwall.com/p/fskzdw/colorful-console-log
Documentation : https://developer.mozilla.org/en-US/docs/Web/API/console#styling_console_output
Add/Include the JS file in your page/project
<script type="text/javascript" src="ConsoleColors.js"></script>#Parameters
text, text-color, background-color, border, border-color
String
String or RGB code
String or RGB code
Boolean - if set to TRUE (2px solid black)
String or RGB code
console.log("console with text colors","darkred");
console.log("console with background colors","black","orange");
console.log("console with border","cyan","green",true);
console.log("and border colors","cyan","green",true,"purple");With jQuery
$.getScript("ConsoleColors.js", function(){
console.log("Color file loaded...");
});