WP Manifestindependent plugin directory
manifest / developer / wp-app-logger

WP App Logger

A development WordPress plugin allowing tracing variables throughout executed code.

by Andrej Ciho · github.com/andrej1c/wp-app-logger · website

★ 0stars
0forks

Install

No release zip yet. The repository archive installs, but the folder name will carry the branch suffix and updates will not flow:

wp plugin install https://github.com/andrej1c/wp-app-logger/archive/refs/heads/master.zip

A WordPress plugin that allows developers to log values of variables through out the flow of their plugins/themes without disrupting the flow.

To start:

  1. Activate the plugin
  2. Set WP_DEBUG_LOG to true in wp-config.php
  3. Add some calls to the action hook in your theme, for example:
do_action( 'wp_app_log', 'At the top of sidebar', $wp_query );

If you are logged in as "testuser" and today was 2014-06-27 a log file called "logs/print-2014-06-27-testuser.log" would be created, relative to the plugin folder.

It will contain this line:

At the top of sidebar :{json encoded string of $wp_query}; --17:12:47