WP Manifestindependent plugin directory
manifest / developer / devlogs

Dev Logs

A post-type Logger/debugger

by Jtsternberg · github.com/jtsternberg/devlogs · website

1stars
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/jtsternberg/devlogs/archive/refs/heads/main.zip

Readme

A post-type Logger/debugger

Useful when server-side logs are unreliable (due to server load balancing, etc).

Usage

Add hooks like the following to your code to implement logging:

add_action( 'current_screen', function( $screen ) {
   do_action( 'logDebugContent', 'debugging-screen', current_filter() . ':' . __LINE__, get_defined_vars() );
} );

Viewing logs

Post-type url: <admin_url>/edit.php?post_type=devlogs

Screenshot

Read the full README on GitHub →