DevKit is a debugging tool for WordPress.
apply_filters( 'devkit_add_log', [ 'test' => 123 ], 'my-plugin', __FILE__, __LINE__ );
do_action( 'devkit_print_log' );
do_action( 'devkit_clear_log' );
$route = 'https://site.com/wp-json/devkit/logs' // GET Request
$route = 'https://site.com/wp-json/devkit/logs' // DELETE Request