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.



1 Answer 1


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.

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .