def syslog(logger_to_update=logger, facility=SysLogHandler.LOG_USER, disableStderrLogger=True):
<EOL>__remove_internal_loggers(logger_to_update, disableStderrLogger)<EOL>syslog_handler = SysLogHandler(facility=facility)<EOL>setattr(syslog_handler, LOGZERO_INTERNAL_LOGGER_ATTR, True)<EOL>logger_to_update.addHandler(syslog_handler)<EOL>return syslog_handler<EOL>
Setup logging to syslog and disable other internal loggers
:param logger_to_update: the logger to enable syslog logging for
:param facility: syslog facility to log to
:param disableStderrLogger: should the default stderr logger be disabled? defaults to True
:return the new SysLogHandler, which can be modified externally (e.g. for custom log level)