$log

Improve this Doc View Source $log

  1. $logProvider
  2. service in module ng

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.

Dependencies

Methods

  • log();

    Write a log message

  • info();

    Write an information message

  • warn();

    Write a warning message

  • error();

    Write an error message

  • debug();

    Write a debug message

© 2010–2016 Google, Inc.
Licensed under the Creative Commons Attribution License 4.0.
https://code.angularjs.org/1.2.32/docs/api/ng/service/$log

在线笔记
App下载
App下载

扫描二维码

下载编程狮App

公众号
微信公众号

编程狮公众号

意见反馈
返回顶部