Create custom Log File in AEM: Open system console http://localhost:4502/system/console. Navigate to sling - Log support.
Click on add new logger button at the bottom of the top panel.
Enter log file: logs/training.log and logger: apps.training.
save it. You can should this entry in the log window. Now go to crx/de console. Go to our project. In site-topnav component, open the js file, add the log.info method and add the message to print in log fle.
Now, when you open any page from your application, this script will run and create an entry in the trainin log flie. You can find this log file in the crx-quickstart-log folder.
This is how you create custom logs in our application.
share, support, like and subscribe
Subscribe : https://www.youtube.com/channel/UC5Lc...
LinkedIn : / pankaj-ch. .
Facebook : / pankajchhatri
Twitter : / pankajchhatri
Google plus : https://plus.google.com/u/0/+pankajch...
About : AEM/CQ5 tutorial is a youtube channel which helps you to learn AEM concepts theoretically as well as practically.