'If C{syslog} is set to C{True}, L{UnixAppLogger._getLogObserver} starts
a L{syslog.SyslogObserver} with given C{prefix}.'

def test_getLogObserverSyslog(self):

    logs = _setupSyslog(self)
    logger = UnixAppLogger({'syslog': True, 'prefix': 'test-prefix'})
    observer = logger._getLogObserver()
    self.assertEqual(logs, ['test-prefix'])
    observer({'a': 'b'})
    self.assertEqual(logs, ['test-prefix', {'a': 'b'}])
