EVOLUTION-MANAGER
Edit File: $log.html
<a href='https://github.com/angular/angular.js/edit/v1.3.x/src/ng/log.js?message=docs($log)%3A%20describe%20your%20change...#L3' class='improve-docs btn btn-primary'><i class="glyphicon glyphicon-edit"> </i>Improve this Doc</a> <a href='https://github.com/angular/angular.js/tree/v1.3.9/src/ng/log.js#L3' class='view-source pull-right btn btn-primary'> <i class="glyphicon glyphicon-zoom-in"> </i>View Source </a> <header class="api-profile-header"> <h1 class="api-profile-header-heading">$log</h1> <ol class="api-profile-header-structure naked-list step-list"> <li> <a href="api/ng/provider/$logProvider">- $logProvider</a> </li> <li> - service in module <a href="api/ng">ng</a> </li> </ol> </header> <div class="api-profile-description"> <p>Simple service for logging. Default implementation safely writes the message into the browser's console (if present).</p> <p>The main purpose of this service is to simplify debugging and troubleshooting.</p> <p>The default is to log <code>debug</code> messages. You can use <a href="api/ng/provider/$logProvider">ng.$logProvider#debugEnabled</a> to change this.</p> </div> <div> <h2 id="dependencies">Dependencies</h2> <ul> <li><a href="api/ng/service/$window"><code>$window</code></a></li> </ul> <h2>Methods</h2> <ul class="methods"> <li id="log"> <h3><p><code>log();</code></p> </h3> <div><p>Write a log message</p> </div> </li> <li id="info"> <h3><p><code>info();</code></p> </h3> <div><p>Write an information message</p> </div> </li> <li id="warn"> <h3><p><code>warn();</code></p> </h3> <div><p>Write a warning message</p> </div> </li> <li id="error"> <h3><p><code>error();</code></p> </h3> <div><p>Write an error message</p> </div> </li> <li id="debug"> <h3><p><code>debug();</code></p> </h3> <div><p>Write a debug message</p> </div> </li> </ul> <h2 id="example">Example</h2><p> <div> <a ng-click="openPlunkr('examples/example-example109')" class="btn pull-right"> <i class="glyphicon glyphicon-edit"> </i> Edit in Plunker</a> <div class="runnable-example" path="examples/example-example109" module="logExample"> <div class="runnable-example-file" name="script.js" language="js" type="js"> <pre><code>angular.module('logExample', []) .controller('LogController', ['$scope', '$log', function($scope, $log) { $scope.$log = $log; $scope.message = 'Hello World!'; }]);</code></pre> </div> <div class="runnable-example-file" name="index.html" language="html" type="html"> <pre><code><div ng-controller="LogController"> <p>Reload this page with open console, enter text and hit the log button...</p> Message: <input type="text" ng-model="message"/> <button ng-click="$log.log(message)">log</button> <button ng-click="$log.warn(message)">warn</button> <button ng-click="$log.info(message)">info</button> <button ng-click="$log.error(message)">error</button> </div></code></pre> </div> <iframe class="runnable-example-frame" src="examples/example-example109/index.html" name="example-example109"></iframe> </div> </div> </p> </div>