Log file for Dialog.xml | Community
Skip to main content
New Participant
February 24, 2016
Solved

Log file for Dialog.xml

  • February 24, 2016
  • 2 replies
  • 818 views

Dear Team,

We have a custom text component in my AEM websites.

Inside the listener we have customized our link functionality as below.

        /* handle links (add attributes as specified by rules, remove links with invalid */
                                                /* HREFs) */
                                                if (com.isTag(dom, 'a')) {
                                                    var href = com.getAttribute(dom, 'href');
                                                    if (href) {
                                                        if (this.htmlRules.links.validateHref(href)) {
                                                            this.htmlRules.links.applyToObject(dom);
                                                            return false;
                                                        } else {
                                                            this.markForRemoval(dom);
                                                            return true;
                                                        }
                                                    }
                                                }

                                                return false;
                                            };

                                            /* */

How can I see the output in my logfile?

For example I want to see the value of var href = com.getAttribute(dom, 'href'); in my log file.

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Best answer by smacdonald2008

To do this - you are logging from the AEM JS file.  You can see the output in the browser console by:

console.log('Testing console');

2 replies

New Participant
February 24, 2016

Thanks,

Sam

smacdonald2008
smacdonald2008Accepted solution
New Participant
February 24, 2016

To do this - you are logging from the AEM JS file.  You can see the output in the browser console by:

console.log('Testing console');