'Create a log observer to be added to the logging system before running
this application.'

def _getLogObserver(self):

    if ((self._logfilename == '-') or (not self._logfilename)):
        logFile = sys.stdout
    else:
        logFile = logfile.LogFile.fromFullPath(self._logfilename)
    return logger.textFileLogObserver(logFile)
