403Webshell
Server IP : 61.19.30.66  /  Your IP : 216.73.216.15
Web Server : Apache/2.2.22 (Ubuntu)
System : Linux klw 3.11.0-15-generic #25~precise1-Ubuntu SMP Thu Jan 30 17:39:31 UTC 2014 x86_64
User : www-data ( 33)
PHP Version : 5.3.10-1ubuntu3.48
Disable Function : pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,
MySQL : ON  |  cURL : OFF  |  WGET : ON  |  Perl : ON  |  Python : ON  |  Sudo : ON  |  Pkexec : OFF
Directory :  /usr/lib/python2.7/dist-packages/twisted/python/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /usr/lib/python2.7/dist-packages/twisted/python/syslog.pyc
ó
[³XMc@s]dZedƒZddlmZdZejZddd„ƒYZdeedd	„Z	d
S(so
Classes and utility functions for integrating Twisted and syslog.

You probably want to call L{startLogging}.
tsyslogiÿÿÿÿ(tlogitSyslogObservercBs8eZdZejZejZeed„Zd„ZRS(sU
    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|j|||ƒdS(sß
        @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(topenlog(tselftprefixtoptionstfacility((s9/usr/lib/python2.7/dist-packages/twisted/python/syslog.pyt__init__#scCstj|ƒ}|dkrdStj}d}|drDtj}nd|krct|dƒ}nd|kr‚t|dƒ}n|jdƒ}x!|ddgkr´|jƒq”Wt	}xI|D]A}|r×t
}n
d	|}|j||Bd
|d|fƒqÂWdS(s†
        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.
        NitisErrortsyslogPrioritytsyslogFacilitys
iÿÿÿÿts	s[%s] %stsystem(RttextFromEventDicttNoneRtLOG_INFOt	LOG_ALERTtinttsplittpoptTruetFalse(Rt	eventDictttexttpriorityRtlinest	firstLinetline((s9/usr/lib/python2.7/dist-packages/twisted/python/syslog.pytemit5s*	

	

(	t__name__t
__module__t__doc__RRtDEFAULT_OPTIONStDEFAULT_FACILITYRR(((s9/usr/lib/python2.7/dist-packages/twisted/python/syslog.pyRs
		tTwistedicCs,t|||ƒ}tj|jd|ƒdS(s
    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}.
    t	setStdoutN(RRtstartLoggingWithObserverR(RRRR$tobs((s9/usr/lib/python2.7/dist-packages/twisted/python/syslog.pytstartLoggingas	N((
R t
__import__Rttwisted.pythonRR!tLOG_USERR"RR'(((s9/usr/lib/python2.7/dist-packages/twisted/python/syslog.pyt<module>	s	L

Youez - 2016 - github.com/yon3zu
LinuXploit