dependency – customLogger depends on customLogger and vice versa issue after Magento upgrade

I’m getting the below error after upgrade from Magento 2.3.6 to 2.4.2-p1 from Docker Image.

LogicException: Circular dependency: customLogger depends on customLogger and vice versa. in /var/www/html/vendor/magento/framework/ObjectManager/Factory/Dynamic/Developer.php:57 Stack trace: #0 /var/www/html/vendor/magento/framework/ObjectManager/ObjectManager.php(70): MagentoFrameworkObjectManagerFactoryDynamicDeveloper->create(‘customLogger’) #1 /var/www/html/vendor/magento/framework/ObjectManager/Factory/AbstractFactory.php(206): MagentoFrameworkObjectManagerObjectManager->get(‘customLogger’) #2 /var/www/html/vendor/magento/framework/ObjectManager/Factory/AbstractFactory.php(182): MagentoFrameworkObjectManagerFactoryAbstractFactory->parseArray(Array) #3 /var/www/html/vendor/magento/framework/ObjectManager/Factory/AbstractFactory.php(276): MagentoFrameworkObjectManagerFactoryAbstractFactory->resolveArgument(Array, NULL, Array, ‘handlers’, ‘customLogger’) #4 /var/www/html/vendor/magento/framework/ObjectManager/Factory/AbstractFactory.php(239): MagentoFrameworkObjectManagerFactoryAbstractFactory->getResolvedArgument(‘customLogger’, Array, Array) #5 /var/www/html/vendor/magento/framework/ObjectManager/Factory/Dynamic/Developer.php(34): MagentoFrameworkObjectManagerFactoryAbstractFactory->resolveArgumentsInRuntime(‘customLogger’, Array, Array) #6 /var/www/html/vendor/magento/framework/ObjectManager/Factory/Dynamic/Developer.php(61): MagentoFrameworkObjectManagerFactoryDynamicDeveloper->_resolveArguments(‘customLogger’, Array, Array) #7 /var/www/html/vendor/magento/framework/ObjectManager/ObjectManager.php(70): MagentoFrameworkObjectManagerFactoryDynamicDeveloper->create(‘customLogger’) #8 /var/www/html/vendor/magento/framework/ObjectManager/Factory/AbstractFactory.php(206): MagentoFrameworkObjectManagerObjectManager->get(‘customLogger’) #9 /var/www/html/vendor/magento/framework/ObjectManager/Factory/AbstractFactory.php(182): MagentoFrameworkObjectManagerFactoryAbstractFactory->parseArray(Array) #10 /var/www/html/vendor/magento/framework/ObjectManager/Factory/AbstractFactory.php(276): MagentoFrameworkObjectManagerFactoryAbstractFactory->resolveArgument(Array, NULL, Array, ‘handlers’, ‘MagentoFramewo…’) #11 /var/www/html/vendor/magento/framework/ObjectManager/Factory/AbstractFactory.php(239): MagentoFrameworkObjectManagerFactoryAbstractFactory->getResolvedArgument(‘MagentoFramewo…’, Array, Array) #12 /var/www/html/vendor/magento/framework/ObjectManager/Factory/Dynamic/Developer.php(34): MagentoFrameworkObjectManagerFactoryAbstractFactory->resolveArgumentsInRuntime(‘MagentoFramewo…’, Array, Array) #13 /var/www/html/vendor/magento/framework/ObjectManager/Factory/Dynamic/Developer.php(61): MagentoFrameworkObjectManagerFactoryDynamicDeveloper->_resolveArguments(‘MagentoFramewo…’, Array, Array) #14 /var/www/html/vendor/magento/framework/ObjectManager/ObjectManager.php(70): MagentoFrameworkObjectManagerFactoryDynamicDeveloper->create(‘MagentoFramewo…’) #15 /var/www/html/vendor/magento/framework/Logger/LoggerProxy.php(91): MagentoFrameworkObjectManagerObjectManager->get(‘MagentoFramewo…’) #16 /var/www/html/vendor/magento/framework/Logger/LoggerProxy.php(126): MagentoFrameworkLoggerLoggerProxy->getLogger() #17 /var/www/html/vendor/magento/framework/App/Bootstrap.php(268): MagentoFrameworkLoggerLoggerProxy->error(‘Please upgrade …’) #18 /var/www/html/en-gb/training/index.php(40): MagentoFrameworkAppBootstrap->run(Object(MagentoFrameworkAppHttp)) #19 {main}

I have found similar work from custom and 3rd party extensions see attached and tried commenting on those di.xml file but no success from there.

enter image description here

enter image description here