facility = logging.handlers.SysLogHandler.LOG_USER
h = logging.handlers.SysLogHandler(address, facility)
f = logging.Formatter('TagName: %(message)s')
h.setFormatter(f)
log.addHandler(h)
How to change the 'tag' when logging to syslog from 'Unknown'?