/usr/lib/python3/dist-packages/twisted/python/__pycache__
NameSizeModeActions
compat.cpython-310.pyc153980644editdlrm
components.cpython-310.pyc143640644editdlrm
constants.cpython-310.pyc4680644editdlrm
context.cpython-310.pyc46570644editdlrm
deprecate.cpython-310.pyc252210644editdlrm
failure.cpython-310.pyc189600644editdlrm
fakepwd.cpython-310.pyc72920644editdlrm
filepath.cpython-310.pyc520500644editdlrm
formmethod.cpython-310.pyc127170644editdlrm
htmlizer.cpython-310.pyc35820644editdlrm
lockfile.cpython-310.pyc51380644editdlrm
log.cpython-310.pyc230160644editdlrm
logfile.cpython-310.pyc104590644editdlrm
modules.cpython-310.pyc254690644editdlrm
monkey.cpython-310.pyc23150644editdlrm
procutils.cpython-310.pyc13890644editdlrm
randbytes.cpython-310.pyc37350644editdlrm
rebuild.cpython-310.pyc55780644editdlrm
reflect.cpython-310.pyc191270644editdlrm
release.cpython-310.pyc15250644editdlrm
roots.cpython-310.pyc89330644editdlrm
runtime.cpython-310.pyc56170644editdlrm
sendmsg.cpython-310.pyc25800644editdlrm
shortcut.cpython-310.pyc24640644editdlrm
syslog.cpython-310.pyc33680644editdlrm
systemd.cpython-310.pyc30510644editdlrm
text.cpython-310.pyc42690644editdlrm
threadable.cpython-310.pyc35200644editdlrm
threadpool.cpython-310.pyc105020644editdlrm
url.cpython-310.pyc2790644editdlrm
urlpath.cpython-310.pyc92820644editdlrm
usage.cpython-310.pyc286350644editdlrm
util.cpython-310.pyc279390644editdlrm
versions.cpython-310.pyc3560644editdlrm
win32.cpython-310.pyc48410644editdlrm
zippath.cpython-310.pyc91460644editdlrm
zipstream.cpython-310.pyc88260644editdlrm
_appdirs.cpython-310.pyc8620644editdlrm
_inotify.cpython-310.pyc25800644editdlrm
_pydoctor.cpython-310.pyc57500644editdlrm
_release.cpython-310.pyc181330644editdlrm
_shellcomp.cpython-310.pyc188550644editdlrm
_textattributes.cpython-310.pyc106420644editdlrm
_tzhelper.cpython-310.pyc33850644editdlrm
_url.cpython-310.pyc2690644editdlrm
__init__.cpython-310.pyc5460644editdlrm
Edit: /usr/lib/python3/dist-packages/twisted/python/__pycache__/syslog.cpython-310.pyc (3368B)
o bD@sFdZedZddlmZdZejZGdddZdeedfdd Z d S) zo Classes and utility functions for integrating Twisted and syslog. You probably want to call L{startLogging}. syslog)logc@s2eZdZdZejZejZeefddZddZ dS)SyslogObserveraU A log observer for logging to syslog. See L{twisted.python.log} for context. This logObserver will automatically use LOG_ALERT priority for logged failures (such as from C{log.err()}), but you can use any priority and facility by setting the 'C{syslogPriority}' and 'C{syslogFacility}' keys in the event dict. cCs||||dS)a @type prefix: C{str} @param prefix: The syslog prefix to use. @type options: C{int} @param options: A bitvector represented as an integer of the syslog options to use. @type facility: C{int} @param facility: An indication to the syslog daemon of what sort of program this is (essentially, an additional arbitrary metadata classification for messages sent to syslog by this observer). N)openlog)selfprefixoptionsfacilityr 7/usr/lib/python3/dist-packages/twisted/python/syslog.py__init__#szSyslogObserver.__init__cCst|}|dur dStj}d}|drtj}d|vr!t|d}d|vr+t|d}|d}|dddgkrF||dddgks9d }|D]}|rQd }nd |}|||Bd |d |qJdS)a Send a message event to the I{syslog}. @param eventDict: The event to send. If it has no C{'message'} key, it will be ignored. Otherwise, if it has C{'syslogPriority'} and/or C{'syslogFacility'} keys, these will be used as the syslog priority and facility. If it has no C{'syslogPriority'} key but a true value for the C{'isError'} key, the B{LOG_ALERT} priority will be used; if it has a false value for C{'isError'}, B{LOG_INFO} will be used. If the C{'message'} key is multiline, each line will be sent to the syslog separately. NrisErrorsyslogPrioritysyslogFacility TF z[{}] {}system) rtextFromEventDictrLOG_INFO LOG_ALERTintsplitpopformat)r eventDicttextpriorityr lines firstLineliner r r emit3s0    zSyslogObserver.emitN) __name__ __module__ __qualname____doc__rrDEFAULT_OPTIONSDEFAULT_FACILITYr r"r r r r rs   rTwistedcCs t|||}tj|j|ddS)a Send all Twisted logging output to syslog from now on. The prefix, options and facility arguments are passed to C{syslog.openlog()}, see the Python syslog documentation for details. For other parameters, see L{twisted.python.log.startLoggingWithObserver}. ) setStdoutN)rrstartLoggingWithObserverr")rrr r+obsr r r startLogging_s r.N) r& __import__rtwisted.pythonrr'LOG_USERr(rr.r r r r s L