W3cubDocs

/Angular.js 1.5

Improve this Doc View Source $logProvider

  1. $log
  2. provider in module ng

Use the $logProvider to configure how the application logs messages

Methods

  • debugEnabled([flag]);

    Parameters

    Param Type Details
    flag
    (optional)
    boolean

    enable or disable debug level messages

    Returns

    *

    current value if used as getter or itself (chaining) if used as setter

© 2010–2017 Google, Inc.
Licensed under the Creative Commons Attribution License 4.0.
https://code.angularjs.org/1.5.11/docs/api/ng/provider/$logProvider