# angular.mock.service.$log

Work in Progress This page is currently being revised. It might be incomplete or contain inaccuracies.

## Description

Mock implementation of `angular.service.$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`.

See `angular.mock` for more info on angular mocks.