I would like to mention that IE9 does not raise the error if you use console.log with developer tools closed on all versions of Windows. On XP it does, but on Windows 7 it doesn't.
So if you dropped support for WinXP in general, you're fine using console.log directly.