WordPress insights plugin
The plugin is a wrapper around the php-logger library. It will gather the standard data like _SESSION, _POST etc. and SQL queries with their data result set and give you instantly insight into the WordPress engine once installed.
It supports custom data if used in your own plugins.
How to install the plugin into your wordpress installation
Installation is straight forward and you should use the automated installed in WordPress. Search for “Consolari Debug Logger” on plugins page and install and activate the plugin. Alternative download Consolari Debug Logger plugin from WordPress website.
On the now available settings page for php-logger you can enter your credentials. If everything went ok it will now send the insights to Consolari. If you don’t have an account yet you can signup for a free one here.
How to use the plugin to log custom data
The insight plugin is loaded as one of the first and should be available and loaded before any other plugins. Which means you can use the helper class in your plugin.
The following example will send the _SERVER environment to Consolari for further inspection.
* Send the _SERVER to gather insight on the system
ConsolariHelper::log('MyGroup', $_SERVER, 'SERVER');
The default configuration of Consolari Debug Logger for WordPress is sending the _POST, _GET, _REQUEST, _FILES, _SESSION, _SERVER, _COOKIE, timing table and SQL queries along with the results.