Very simple and useful logging API for Javascripts
- One central API for logging per individual scripts
- Helps to organize logging per scripts
- Gives control to display logging or not based on local/dev or prod site
- Helps to identify the source of logging
- Supports built-in timestamps
- In case of errors, it helps trace the function calls
var displayLog = true;
var logMain = new logger("main.js", displayLog);
logMain.log("Test info logging");
logMain.info("Test info logging");
logMain.warn("Test warning logging");
logMain.error("Test error logging");
Just download and use it in script tag
GPL ver. 1.0