Use logging library instead of console.log