Skip to content

MichaelZelensky/log.js

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

log.js

Cross-browser wrapper for window.console object.

If you try to use console.log() in Internet Explorer version 9 or less, it will throw out an error and make your script stop. The script fixes this problem and makes console.log() usage cross-browser. It will not log messages in IE9 or less, because there is no technical way for that, but your JS will also not crash because of using console object.

Usage

Include JSLog by adding this line to your html HEAD section:

<script src="j/https://github.com/MichaelZelensky/s/log.js" type="application/javascript"></script>

In your JS code:

log.log('This is console log message');
log.error('This is console error message');

About

Cross-browser wrapper for window.console object.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published