Mock implementation of $log
that gathers all logged messages in arrays (one array per logging level). These arrays are exposed as logs
property of each of the level-specific log function, e.g. for level error
the array is exposed as $log.error.logs
.
Reset all of the logging arrays to empty.
Assert that all of the logging methods have no logged messages. If any messages are present, an exception is thrown.
© 2010–2017 Google, Inc.
Licensed under the Creative Commons Attribution License 4.0.
https://code.angularjs.org/1.5.11/docs/api/ngMock/service/$log