def get_syslog_facility():
facil = os.getenv('<STR_LIT>', '<STR_LIT:user>')<EOL>valid_facility = True<EOL>try:<EOL><INDENT>facility = handlers.SysLogHandler.facility_names[facil.lower()]<EOL><DEDENT>except KeyError:<EOL><INDENT>valid_facility = False<EOL>facility = handlers.SysLogHandler.LOG_USER<EOL><DEDENT>return facility, valid_facility<EOL>
Get syslog facility from ENV var