def test_configuredLogObserverBeatsComponent(self):
        """
        C{--logger} takes precedence over a L{ILogObserver} component set on
        Application.
        """
        observer = self._makeObserver()
        application = Componentized()
        application.setComponent(ILogObserver, observer)
        self._checkObserver(self._setupConfiguredLogger(application))
        self.assertEqual(observer._logs, [])

        C{--logger} takes precedence over a L{ILogObserver} component set on
        Application.
        
stackoverflow/venv/lib/python3.6/site-packages/twisted/test/test_twistd.py