5

Going trough the documentation for lightning I found the following line:

aura.log("current text: " + attributeValue);

I can't find any documentation about this method and I was wondering if there is any and also where can I find the log information. I though it would be on the browser console, but it's not there.

The link bellow will take you to the page where I found this method.

https://developer.salesforce.com/docs/atlas.en-us.lightning.meta/lightning/js_client_side_controller.htm?search_text=aura.log

8

Have a read of Log Messages around $A.log(string, [error]).

It outputs to the JavaScript console

  • $A is the shorthand in JavaScript code for the Aura object.
  • $A.log() doesn't output in PROD or PRODDEBUG modes.

You should either:

Also, see the related question Salesforce1 Lightning Debug “log()” method not working where Peter covers some options for how to get it to output.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.