Configuring client logging
You can use the following methods to enable client-side logging in HTML5 forms:
- Using the request parameter named
log
- Using CQ Configuration Manager
Enabling logging using request parameter
Using this method, you can generate logs for a particular request. The name of the request parameter is log. The log URL is as follows:
https://<server>:<port>/content/xfaforms/profiles/test.html?contentRoot=<path of the folder containing form xdp>&template=<name of the xdp>&log=<log configuration>.
The log configuration is made up of the log level and the logger category.
Log Destination
Log Levels
Logger Categories
Log Configuration
In the log URL, the log configuration query string parameter is defined as follows:
{destination}-{a level}-{b level}-{c level}
For example:
a (xfa): 2 (default level ERROR)
b (xfaView): 6 (user specified TRACE)
a (xfaPerf): 2 (default level ERROR)
Enabling logging using Configuration Manager
If you use Configuration Manager for enabling logging, logs are generated for every render request until the logging is disabled again.
-
Log in to CQ Configuration Manager at
https://[server]:[port]/system/console/configMgr
and log in with admin credentials. -
Search for and click Mobile Forms Configurations.
-
In the Debug Options text box, enter the log configurations as described in the previous section for example, 2-a4-b5-c6
Forms Configuration
Uploading logs
If the destination is set as 1, all client script log messages are directed to the console. If an administrator requires these logs along with server logs, set destination level to 2. At this level, all logs are collected in a JS object on client side and if form is rendered with default Profile then a Send Logs button appears to the left of Highlight Existing Fields button in toolbar. When user clicks the link, all collected logs are posted to the server and are logged in the configured error log file on the server.
By default, all the information is added to the error.log file at the /crx-repository/logs/ directory.
To change the location and name of the log file:
-
Log in to Configuration Manager as an administrator. The default URL of Configuration Manager is
https://[*Server*]:[*Port*]/system/console/configMgr
. -
Click Apache Sling Logging Logger Configuration. A dialog box appears.
-
Change the Log Level to Debug.
-
Specify path and name of the Log File.
NOTE
To create logs in the same directory where other log files are kept, specify …/logs/<filename> in the Log Files property. -
Change the Logger to HTMLFormsPerfLogger and click Save.
Experience Manager
- AEM 6.4 Forms Guide
- Release Notes
- Getting Started
- Install and configure AEM Forms
- Upgrade AEM Forms
- Manage AEM Forms
- Form Data Model
- Adaptive Forms - Basic Authoring
- Adaptive Forms - Advanced Authoring
- Interactive Communications
- Workflows
- AEM Forms Workspace
- AEM Forms app
- HTML5 Forms
- Letters and Correspondences
- Integrate AEM Forms with Experience Cloud solutions
- Publish and process AEM Forms
- Forms Portal
- Document Services
- Document Security
- Forms Designer
- Customize AEM Forms
- Transaction Reports
- Administrator help for AEM Forms on JEE
- Process Reporting
- Developer Reference
The Perfect Blend: A New Era of Collaboration with AEM and Workfront
Adobe Customer Success Webinars
Wednesday, Apr 2, 5:00 PM UTC
Explore how Adobe Experience Manager and Workfront integrate to help teams move from ideation to delivery without the usual bottlenecks, ensuring content is organized, on-brand, and ready to go live faster.
RegisterAdobe Experience Manager Forms at Summit
Register for these user sessions:
- Driving Marketing Agility and Scale: Transforming your Content Supply Chain with AI (attend online)
- The True Cost of a Failed Implementation (attend online)
- Rapid Feature Releases with AEM Cloud: Telegraph Media Group’s RDE Strategy (attend online)
- Put the Customer at the Center and Build Relationships That Last a Lifetime (attend online)
- The Future of Forms: Experience Success Across the Enrollment Journey (attend online)
Connect with Experience League at Summit!
Get front-row access to top sessions, hands-on activities, and networking—wherever you are!
Learn more