Enable or disable debugging and trace javascript and other files with the Event log Plugin.
Installation
You can install Event Logs plugin using 2 different ways:
- Automatic Installation: You can install a plugin from the backend of your WordPress. Click Here to see how you can do the automatic installation.
- Manual Installation: You can install the plugin manually using SFTP or FTP tool as well. Click Here to see how you can do a manual installation.
How to Debug Javascript file
In order to debug the javascript file, follow the steps,
- Go to Admin >> event listings >> settings >> logs.
- Locate Javascript logs.
- Checkmark the box stating “enable javascript logs”.
- Save changes.
How to Trace Javascript file?
In order to trace the Javascript file, follow the steps,
- Go to Admin >> event listings >> settings >> logs.
- Locate Javascript Trace..
- Checkmark the box stating “enable javascript Trace”.
- Save changes
Logs Console View
In order to see the debug information,
- Go to inspect by clicking F12 or right-click the mouse, and locate inspect.
- Go to the console tab.
- You will find the information as in the image below.
Advanced: Overriding/Customizing the templates
For overriding or customization, template files can be found in the wp-event-manager-logs/templates/ directory. To override a template file,
- First you need to create directory “wp-event-manager-logs” under your theme folder.
- Copy the template file to “/wp-content/yourtheme/wp-event-manager-logs/” directory.
- Your theme will use all the template files from the “/wp-content/yourtheme/wp-event-manager-logs/” Directory instead of the plugin’s template file (/wp-content/plugins/wp-event-manager-logs/).
- event-logs.php template file lists the user’s logs.
Remember: if you have overrided template file and plugin frequently updating then you need to sync template file with new updates from the plugin’s template file for better functionality and new features.