simple jquery logger, that can log data to div or to browser console
MIT License
jQuery logger plugin allow to log any data not only to browser console, but even to any html element (such as div).
It contain a function to expand javascript objects to log something more usefull then [Object object] :). With function to detect recursion usages to prevent brousers to hang up (do not help for IE and chrome :( ).
Demonstration abailable at http://apmem.github.io/jquery-logger
Currently the following browsers were tested to work with this menu plugin:
Most of this browsers (except opera and FF) are unable to show DOM elements because all of them contains links to each other and there is too many elements. Because of this all other browsers hang up and ask to terminate script. Be careful when using it on production servers.
Script requred jquery.js to be included into the document before this script.
After the script attached it can be used in one of the following ways:
Use $("#logDiv").log($(document)); only in ff and opera.
If maxLevel is not set - other browsers hang up on such large objects
Logger have a configuration function logConfig to change predefined parameters that will be applied to all future log() calls.
The following parameters can be set:
Be carefull if maxLevel is set to -1 and recursionBehaviour is set to 'skip' - iterations will never stopped and browser will hang up