'A L{ILogObserver} takes precedence over a L{LegacyILogObserver}
component set on Application.'

def test_loggerComponentBeatsLegacyLoggerComponent(self):

    nonlogs = []
    observer = self._makeObserver()
    application = Componentized()
    application.setComponent(ILogObserver, observer)
    application.setComponent(LegacyILogObserver, nonlogs.append)
    logger = app.AppLogger({})
    logger.start(application)
    self._checkObserver(observer)
    self.assertEqual(nonlogs, [])
