A simple wrapper for Console.log
This code provides a simple wrapper for the console's logging methods,
and was created to allow a very easy-to-use, cross-browser logging solution,
without requiring excessive or unwieldy object detection. If a console object
is not detected, all logged messages will be stored internally until a logging
callback is added. If a console object is detected, but doesn't have any of
error logging methods,
log will be used
in their place. For convenience, some of the less common console methods will
be passed through to the console object if they are detected, otherwise they
will simply fail gracefully.
- Chrome 6 and higher
- Apple Safari 3 and higher
- Mozilla Firefox 2 and higher
- Microsoft Internet Explorer for Windows, version 6 and higher
- Opera 10 and higher
To use Debug in your application, you may download the latest release from our Maven Repository and extract debug.js to a suitable location. Then include it early in your HTML like so:
Building Debug from source
Contributing to Debug
Fork our repository on GitHub and submit your pull request.
The documentation has yet to be written
Debug is a derivative work from
Debug is licenced under the MIT license.