
Logger page
do_action( 'logger', $data ); in your codeUse the wpdl_add_button( string $name, callable $clb, string $btnClass = '' ) function to add a button to the logger page.
Click on the button to execute the function via WP-AJAX. If an Exception or Error occurs, it will be logged as well.