The AngularJS $log service is used to write error, info, warning and debugging into the browser's console. The $log service is used to simple simplify debugging and troubleshooting. It includes all the methods to log the error, information, warning and debug information.
Syntax