Skip to content

andrej1c/wp-app-logger

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 

Repository files navigation

WP App Logger

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

About

A development WordPress plugin allowing tracing variables throughout executed code.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages