def my_log_message(my_args, prio, msg):
syslog.syslog(prio, msg)<EOL>if my_args.debug or my_args.verbose or prio == syslog.LOG_ERR:<EOL><INDENT>sys.stderr.write("<STR_LIT>" % (msg))<EOL><DEDENT>
Log msg to syslog, and possibly also output to stderr.