Make use of $log instead of console.