def startLogging(prefix='Twisted', options=DEFAULT_OPTIONS, facility=DEFAULT_FACILITY, setStdout=1):
 obs = SyslogObserver(prefix, options, facility)
 log.startLoggingWithObserver(obs.emit, setStdout=setStdout)

def startLogging ( prefix = 'Twisted' , options = DEFAULT_OPTIONS , facility = DEFAULT_FACILITY , setStdout = 1 ) : obs = SyslogObserver ( prefix , options , facility ) log . startLoggingWithObserver ( obs . emit , setStdout = setStdout )
initialize logging to a specified file .