Write a debug message
Write a debug message
The message to log.
Write an error message
Write an error message
The message to log.
Write an information message
Write an information message
The message to log.
Write a log message
Write a warning message
Write a warning message
The message to log.
Simple service for logging. Default implementation safely writes the message into the browser's console (if present). The main purpose of this service is to simplify debugging and troubleshooting. The default is to log debug messages. You can use ng.$logProvider#debugEnabled to change this.
https://docs.angularjs.org/api/ng/service/$log