Logging
console.log versus $log
- Use
console.logas liberally as needed during development, for debugging purposes or otherwise - However do not commit/ push any code containing
console.logstatements to your version control system (git/ svn, et cetera) - In most cases you should simply delete the
console.logs - However, if you want to keep some of these log statements,
replace their usages with
$loginstead, as it provides a more robust and more easily extendible logging solution.