def write(pri, message):
    syslog.openlog('pakrat')  # sets log ident
    syslog.syslog(pri, message)
    if not sys.stdout.isatty():
        print message  # print if running unattended
Record a log message.
dataset/ETHPy150Open ryanuber/pakrat/pakrat/log.py/write