'When non-daemonized and C{logfile} is empty or set to C{-},
L{UnixAppLogger._getLogObserver} returns a log observer pointing at
C{sys.stdout}.'

def test_getLogObserverStdout(self):

    logFiles = _patchTextFileLogObserver(self.patch)
    logger = UnixAppLogger({'logfile': '-', 'nodaemon': True})
    logger._getLogObserver()
    self.assertEqual(len(logFiles), 1)
    self.assertIs(logFiles[0], sys.stdout)
    logger = UnixAppLogger({'logfile': '', 'nodaemon': True})
    logger._getLogObserver()
    self.assertEqual(len(logFiles), 2)
    self.assertIs(logFiles[1], sys.stdout)
