graphql_get_debug_log
Fires when the debug logs are retrieved
do_action( 'graphql_get_debug_log', WPGraphQL\Utils\DebugLog $debug_log );
Params
- $debug_log (WPGraphQL\Utils\DebugLog): An instance of the DebugLog class
Source
File: wp-graphql/src/Utils/DebugLog.php
Example
add_action( 'graphql_get_debug_log', function( \WPGraphQL\Utils\DebugLog $debug_log ) use ( $message, $config ) {
return $debug_log->add_log_entry( $message, $config );
} );