Use $log service instead of console for logging