jquery.console.js
A built-in console to be displayed within the HTML view.
Main features:
- Display logs in your code.
 - Separate logs, errors, warnings and success messages.
 - Excellent if you are developing cordova apps and want to see console messages.
 - Timestamped.
 - Customizable height and width.
 - Infinite scrolling logs, in little real estate
 - carousel layout
 - full width and full window support
 
Getting started
1. Get a copy of the plugin
You can fork or download the plugin from GitHub
2. Load the required files
In the page's footer, just before </body>, include the required JavaScript files.
<script src="libs/js/jquery-1.11.0.min.js"></script> <script src="dist/js/jquery.console.js"></script>3. Create the HTML markup
<div id='debug'></div>4. Instantiate the console
<script type="text/javascript"> 	var c=new Console({             'element':'#debug',             'width':500,             'height':100,             'bg':'#efefef'         }); </script>Or simply,
<script type="text/javascript"> 	var c=new Console(); </script>5. Invoke the console
<script type="text/javascript"> 	c.log('Added!');     c.success('Yes!');     c.error('Oops!');     c.warning('Alert!'); </script>6. Options
The options available for passing to Console():
element- The element selector. Default#debugwidth- Width of the console inpx. Default500height- Height of the console inpx. Default100bg- Background color of the console. Default#efefefpadding- Padding of the console. Default5search_border- Border of the search input. Default1px SOLID #fefefesearch_btn_border- Border of search button. Default1px SOLID #ffffffsearch_bg- Background color of search input. Default#f8f8f8search_btn_bg- Background color of search button. Default#fefefesearch_color- Text color of search input. Default#555search_btn_color- Text color of search button. Default#888
License
The plugin is available under the MIT license.