Added AMD support for console.log wrappers.