jLog

Usage Require
jQuery javascript library
Available on http://jquery.com/
HTML Source
<script type="text/javascript" src="YOUR_PATH/jQuery.js"></script>
<script type="text/javascript" src="YOUR_PATH/jLog.js"></script>
<link type="text/css" rel="stylesheet" href="YOUR_PATH/jLog.css" />
Loading jLog
jQuery(window).load(function() {
    jLog.show();
});
// don't use jQuery(document).ready(...)
// because it causes some sizing problems on Safari and Chrome
Javascript API
jLog.show()               // show jLog
jLog.hide()               // hide jLog
jLog.toggle()             // show, hide jLog
jLog.clear()              // clear the log
jLog.move()               // move jLog to next corner
jLog.resize()             // reduce, enlarge jLog
jLog.show_times()         // show execution times
jLog.hide_times()         // hide execution times
jLog.toggle_times()       // show, hide execution times
jLog.filter(type, bool)   // apply or not (bool = true or false) type filter
                          // type = debug, info, warn, error or timer 
jLog.toggle_filter(type)  // filter or not the type filter
                          // type = debug, info, warn, error or timer 
        jLog.debug(msg)           // add a debug message (msg parameter)
jLog.info(msg)            // add an info message (msg parameter)
jLog.warn(msg)            // add a warning message (msg parameter)
jLog.error(msg)           // add an error message (msg parameter)
jLog.timer(key[, msg])    // start the key timer, or add msg message
                          // if key timer already started
Keyboard shortcuts
F2                        // show, hide jLog
Shift + F2                // move jLog to next corner
Ctrl + F2                 // enlarge + show times, reduce + hide times
Shift + Ctrl + F2         // clear jLog
Sample 1
jLog.debug('this is a debug message');
jLog.info('this is an info message');
jLog.warn('this is a warning message');
jLog.error('this is an error message');

Sample 2
var test, i, j, n;
jLog.timer('main');
for(j=1; j<6; j++) {
	jLog.timer('loop');
	test = '';
	n = Math.floor(Math.random()*16)*1000+4000;
	for(i=0; i<n; i++) {
		test += '-';
	}
	jLog.timer('loop', 'n�'+j+', '+n+' loops');
}
jLog.timer('main', 'main program');

Sample 3


            times

            times

            times

            times


            times

Sample 4

      filter

      filter

      filter

      filter

      filter


      filter