Apply console.log and console.error to console.