Not only that, you have to save a reference to the parts of the console that you want to use just in case they attempt to destroy those.
var c = console
var l = console.log
var log = function(){ l.apply(c, arguments) }
Now they can't break the console from working with stuff like: console.log = function(){}