src/EntityManager/EntityManagerFactory.php
public function setDebuggingInfo(ConfigInterface $config, EntityManagerInterface $entityManager): void
    {
        $isDbDebug = (bool)$config->get(ConfigInterface::PARAM_DB_DEBUG);
        if (false === $isDbDebug) {
            return;
        }
        $connection = $entityManager->getConnection();
        $connection->query(
            "
                set global general_log = 1;
                set global log_output = 'table';
                truncate general_log;
                "
        );
    }
public function setDebuggingInfo(ConfigInterface $config, EntityManagerInterface $entityManager): void
    {
        $isDbDebug = (bool)$config->get(ConfigInterface::PARAM_DB_DEBUG);
        if (false === $isDbDebug) {
            return;
        }
        $connection = $entityManager->getConnection();
        $connection->query(
            "
                set global general_log = 1;
                set global log_output = 'table';
                truncate general_log;
                "
        );
    }
public function setDebuggingInfo ( ConfigInterface $ config , EntityManagerInterface $ entityManager ) : void { $ isDbDebug = ( bool ) $ config -> get ( ConfigInterface :: PARAM_DB_DEBUG ) ; if ( false === $ isDbDebug ) { return ; } $ connection = $ entityManager -> getConnection ( ) ; $ connection -> query ( "
                set global general_log = 1;
                set global log_output = 'table';
                truncate general_log;
                " ) ; }
This is used to set any debugging information, by default it enables MySql logging and clears the log table.
Override this method if there is anything else that you need to do

@param ConfigInterface        $config
@param EntityManagerInterface $entityManager

@throws \Doctrine\DBAL\DBALException
This is used to set any debugging information by default it enables MySql logging and clears the log table . Override this method if there is anything else that you need to do