Here are some features it supports:
- Turn logging on and off
All you have to do is to keep on logging with firebug just as you did before! The problem occurs when you want to debug n a browser that doesn’t have Firebug enabled! Well, that should be no problem! Just include
So jslog.js is a nice utility which allows you to work with two logging strategies, but using a single API, which you already know, the Firebug console
Another facility is disabling logging – in one single line! This is especially useful when going live! You don’t want to go through all your code and modify it! Use jslog.logging.init(false)
A small tutorial.
jslog.logging.init(true); console.log('hello','this will be logged'); jslog.logging.init(false); console.warn('sorry...','this log will not appear');
When you want to log in non-firebug environments, just include the following in your html file:
So…. happy logging! For questions and support, contact me!