In order to use this logger, you only need include Logger.js in your html page. Logger class will automatically create a console for you at the bottom of the browser window when it is first time invoked.
This log console is drawable; sliding up and down by clicking the tab. Or, you can toggle the console by calling Logger.show() and Logger.hide().
log("Hello") : print a string, Hello log(123) : print a numeric value, 123 log() : print a blank line
Type text and press the button to print the text to the console window.
v1.10: Added enable()/disable() functions.
v1.09: Added z-index attribute on the logger container.
v1.08: Use requestAnimationFrame() for animations.
v1.07: Wrap a message if it is longer than the window width.
v1.06: Print "undefined" or "null" if msg is undefined or null value.
v1.05: Added time stamp for log() (with no param).
v1.04: Modified handling undefined type of msg.
v1.03: Fixed the error when msg is undefined.
v1.02: Added sliding animation easy in/out using cosine
v1.01: Changed "display:none" to visibility:hidden for logDiv.
Supported IE v8 without transparent background.
v1.00: First public release.