Skip to content

Very simple and useful logging API for Javascripts

License

Notifications You must be signed in to change notification settings

drveresh/JSLogger

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

JSLogger

Very simple and useful logging API for Javascripts

How it is useful

  • 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

Examples

    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");

Installation

Just download and use it in script tag

Sample Log

Alt text

Licence

GPL ver. 1.0

About

Very simple and useful logging API for Javascripts

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published