Set console.log to a custom funciton for IE <= 9