Skip to content

Instantly share code, notes, and snippets.

@jonathansampson
Last active December 25, 2015 09:29
Show Gist options
  • Save jonathansampson/6954377 to your computer and use it in GitHub Desktop.
Save jonathansampson/6954377 to your computer and use it in GitHub Desktop.
Initial attempts at logging the console support for each major browser/version.
/*
(function () {
var prop, props = [];
for ( prop in console ) {
props.push({
name: prop,
type: Object.prototype.toString.call( console[ prop ] )
});
}
props.sort(function( a, b ) {
return a.name < b.name ? -1 : 1;
});
console.log( JSON.stringify( props, null, 4 ) );
}());
*/
[
{
browser: "Chrome",
version: "30.0.1599.69",
console: [
{
"name": "assert",
"type": "[object Function]"
},
{
"name": "clear",
"type": "[object Function]"
},
{
"name": "count",
"type": "[object Function]"
},
{
"name": "debug",
"type": "[object Function]"
},
{
"name": "dir",
"type": "[object Function]"
},
{
"name": "dirxml",
"type": "[object Function]"
},
{
"name": "error",
"type": "[object Function]"
},
{
"name": "group",
"type": "[object Function]"
},
{
"name": "groupCollapsed",
"type": "[object Function]"
},
{
"name": "groupEnd",
"type": "[object Function]"
},
{
"name": "info",
"type": "[object Function]"
},
{
"name": "log",
"type": "[object Function]"
},
{
"name": "markTimeline",
"type": "[object Function]"
},
{
"name": "memory",
"type": "[object MemoryInfo]"
},
{
"name": "profile",
"type": "[object Function]"
},
{
"name": "profileEnd",
"type": "[object Function]"
},
{
"name": "table",
"type": "[object Function]"
},
{
"name": "time",
"type": "[object Function]"
},
{
"name": "timeEnd",
"type": "[object Function]"
},
{
"name": "timeStamp",
"type": "[object Function]"
},
{
"name": "trace",
"type": "[object Function]"
},
{
"name": "warn",
"type": "[object Function]"
}
]
},
{
browser: "Firefox",
version: "24",
console: [
{
"name": "log",
"type": "[object Function]"
},
{
"name": "info",
"type": "[object Function]"
},
{
"name": "warn",
"type": "[object Function]"
},
{
"name": "error",
"type": "[object Function]"
},
{
"name": "debug",
"type": "[object Function]"
},
{
"name": "trace",
"type": "[object Function]"
},
{
"name": "dir",
"type": "[object Function]"
},
{
"name": "group",
"type": "[object Function]"
},
{
"name": "groupCollapsed",
"type": "[object Function]"
},
{
"name": "groupEnd",
"type": "[object Function]"
},
{
"name": "time",
"type": "[object Function]"
},
{
"name": "timeEnd",
"type": "[object Function]"
},
{
"name": "profile",
"type": "[object Function]"
},
{
"name": "profileEnd",
"type": "[object Function]"
},
{
"name": "__noSuchMethod__",
"type": "[object Function]"
}
]
},
{
browser: "Internet Explorer",
version: "10.0.9200.16721",
console: [
{
"name": "assert",
"type": "[object Function]"
},
{
"name": "clear",
"type": "[object Function]"
},
{
"name": "dir",
"type": "[object Function]"
},
{
"name": "error",
"type": "[object Function]"
},
{
"name": "info",
"type": "[object Function]"
},
{
"name": "log",
"type": "[object Function]"
},
{
"name": "profile",
"type": "[object Function]"
},
{
"name": "profileEnd",
"type": "[object Function]"
},
{
"name": "warn",
"type": "[object Function]"
}
]
},
{
browser: "Internet Explorer",
version: "11.0.9431.0",
console: [
{
"name": "assert",
"type": "[object Function]"
},
{
"name": "cd",
"type": "[object FunctionWrapper]"
},
{
"name": "clear",
"type": "[object FunctionWrapper]"
},
{
"name": "count",
"type": "[object FunctionWrapper]"
},
{
"name": "countReset",
"type": "[object FunctionWrapper]"
},
{
"name": "css",
"type": "[object FunctionWrapper]"
},
{
"name": "debug",
"type": "[object FunctionWrapper]"
},
{
"name": "dir",
"type": "[object FunctionWrapper]"
},
{
"name": "dirxml",
"type": "[object FunctionWrapper]"
},
{
"name": "error",
"type": "[object Function]"
},
{
"name": "group",
"type": "[object FunctionWrapper]"
},
{
"name": "groupCollapsed",
"type": "[object FunctionWrapper]"
},
{
"name": "groupEnd",
"type": "[object FunctionWrapper]"
},
{
"name": "info",
"type": "[object Function]"
},
{
"name": "log",
"type": "[object Function]"
},
{
"name": "profile",
"type": "[object Function]"
},
{
"name": "profileEnd",
"type": "[object Function]"
},
{
"name": "select",
"type": "[object FunctionWrapper]"
},
{
"name": "time",
"type": "[object FunctionWrapper]"
},
{
"name": "timeEnd",
"type": "[object FunctionWrapper]"
},
{
"name": "trace",
"type": "[object Function]"
},
{
"name": "warn",
"type": "[object Function]"
}
]
},
{
browser: "Internet Explorer",
version: "11.0.9600.16411",
console: [
{
"name": "assert",
"type": "[object Function]"
},
{
"name": "cd",
"type": "[object Function]"
},
{
"name": "clear",
"type": "[object Function]"
},
{
"name": "count",
"type": "[object Function]"
},
{
"name": "countReset",
"type": "[object Function]"
},
{
"name": "debug",
"type": "[object Function]"
},
{
"name": "dir",
"type": "[object Function]"
},
{
"name": "dirxml",
"type": "[object Function]"
},
{
"name": "error",
"type": "[object Function]"
},
{
"name": "group",
"type": "[object Function]"
},
{
"name": "groupCollapsed",
"type": "[object Function]"
},
{
"name": "groupEnd",
"type": "[object Function]"
},
{
"name": "info",
"type": "[object Function]"
},
{
"name": "log",
"type": "[object Function]"
},
{
"name": "profile",
"type": "[object Function]"
},
{
"name": "profileEnd",
"type": "[object Function]"
},
{
"name": "select",
"type": "[object Function]"
},
{
"name": "time",
"type": "[object Function]"
},
{
"name": "timeEnd",
"type": "[object Function]"
},
{
"name": "trace",
"type": "[object Function]"
},
{
"name": "warn",
"type": "[object Function]"
}
]
}
];
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment