A fake browser console for debugging environments without one
Include both the JavaScript and CSS dependencies
<script type="text/javascript" src="FauxConsole.js"></script>
<link rel="stylesheet" href="FauxConsole.css" />
To enable or disable the console, call FauxConsole.enable()
or FauxConsole.disable()
respectively.
FauxConsole.enable();
// console.log() will now be sent to the FauxConsole instead
console.log('Hello, world!');
console.warn({ test: true });
FauxConsole.disable();
// The system console will receive console.log() commands instead, if it exists
MIT © Jesse Youngblood