angular, 2 minutes, karma
How to access Angular $log debug messages from within Karma
Posted on .Angular has a convenient $log service that allows you to log debug messages to the console: $log.debug('Some debug message'); The cool thing about debug messages is that you can easily turn logging on/off in one place using the $logProvider: (function (angula…