No Results
Search Tips:
- Please consider misspellings
- Try different search keywords
Newer Version Available
Log Messages
To help debug your client-side code, you can use the log() method to write output to the JavaScript console of your web browser.
Use the $A.log(string, [error]) method to output a log message to the JavaScript console. The first parameter is the string to log and the optional second parameter is an error object whose messages should be logged. For example, $A.log("This is a log message"); will output "This is a log message" to the JavaScript console. If you put $A.log("The name of the action is: " + this.getDef().getName()); inside an action called "openNote" in a client-side controller, then the log message "The name of the action is: openNote" will be output to the JavaScript console.
For instructions on using the JavaScript console, refer to the instructions for your web browser.