Some browsers require their Developer Tools to be open before console.log()
is available (particularly IE9). This is a (tiny!) shim that:
- Allows developers to use
console.log
,console.error
,console.warn
and many others as normal - Stores all log data in a buffer
- Checks every 1000ms for the existance of the native developer tools and outputs the buffer
This issue seems to particularly affect IE9. Do you know of another browser that behaves the same? Create an issue or fire a tweet at @liamnewmarch.
This code is distributed under a CC-BY license.