Bring console.log, on the screen
Ever faced a situation where you said "Why doesn't this bug show up when developer console is open!!"? And since the bug doesn't show when you have console open, you cannot do debug logging using console.log
.
Enter screenlog.js
. screenlog.js
brings the developer console right on your screen so that you can do logging without having the developer console open always.
Do npm install screenlog
or download the project.
Drop dist/screenlog.min.js
into your web application and initialize it with:
screenLog.init();
And you are done!
By default, every next console.log
in your app now starts logging on the screen. Or you can use screenLog.log() instead.
Animate an element sourceElement
onto targetElement
.
options
- A map of additional options.color
- Text color. Default islightgreen
.bgColor
- Background color of the log panel. Default isblack
.releaseConsole
- By default console.log is overridden to log on screen. You can avoid this behaviour by settingreleaseConsole
totrue
and instead usescreenLog.log()
api. Default isfalse
.
Logs a message on the screen.
obj1 ... objN
- A list of JavaScript objects or strings to output. Just likeconsole.log
.
Clear messages on the screen.
screenlog.js works best on latest versions of Google Chrome, Firefox and Safari.
Interested in contributing features and fixes?
See the Changelog
Copyright (c) 2015 Kushagra Gour, http://kushagragour.in Licensed under the MIT license.