Skip to content

Latest commit

 

History

4 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 

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

Stars

1 star

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages