Module ImportFrom alias ImportFrom alias TryExcept body Import alias identifier handlers ExceptHandler type NameLoad body Assign NameStore NameLoad orelse ImportFrom alias ClassDef bases NameLoad body Expr Str Assign NameStore NameLoad If CompareIs NameLoad NameLoad body Assign NameStore Str FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Str AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Str AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr Str decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam defaults body Assign AttributeStore NameLoad attr TupleLoad NameLoad NameLoad NameLoad Assign AttributeStore NameLoad attr ListLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Expr Call AttributeLoad AttributeLoad NameLoad attr attr TupleLoad NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Expr Call AttributeLoad AttributeLoad NameLoad attr attr Dict Str Str Str TupleLoad NameLoad Str Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr ListLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Expr Call AttributeLoad AttributeLoad NameLoad attr attr Dict Str Str Str Str TupleLoad Str NameLoad Str AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr ListLoad TupleLoad AttributeLoad NameLoad attr Str decorator_list FunctionDef arguments args NameParam defaults body Expr Str Expr Call AttributeLoad AttributeLoad NameLoad attr attr Dict Str Str Str Str TupleLoad Str NameLoad Str Call NameLoad Call NameLoad Str Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr ListLoad TupleLoad AttributeLoad NameLoad attr Str decorator_list FunctionDef arguments args NameParam defaults body Expr Str Expr Call AttributeLoad AttributeLoad NameLoad attr attr Dict Str Str Str Str Str TupleLoad Str NameLoad Str AttributeLoad NameLoad attr Call NameLoad Call NameLoad Str Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr ListLoad TupleLoad AttributeLoad NameLoad attr Str decorator_list FunctionDef arguments args NameParam defaults body Expr Str Expr Call AttributeLoad AttributeLoad NameLoad attr attr Dict Str Str Str Str TupleLoad Str NameLoad Str AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr ListLoad TupleLoad BinOpBitOr AttributeLoad NameLoad attr AttributeLoad NameLoad attr Str decorator_list FunctionDef arguments args NameParam defaults body Expr Str Expr Call AttributeLoad AttributeLoad NameLoad attr attr Dict Str Str Str TupleLoad Str NameLoad Str Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr ListLoad TupleLoad AttributeLoad NameLoad attr Str decorator_list FunctionDef arguments args NameParam defaults body Expr Str Expr Call AttributeLoad AttributeLoad NameLoad attr attr Dict Str Str Str TupleLoad Str NameLoad Str Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr ListLoad TupleLoad AttributeLoad NameLoad attr Str decorator_list FunctionDef arguments args NameParam defaults body Expr Str Expr Call AttributeLoad AttributeLoad NameLoad attr attr Dict Str Str Str TupleLoad Str NameLoad Str Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr ListLoad TupleLoad AttributeLoad NameLoad attr Str TupleLoad AttributeLoad NameLoad attr Str decorator_list FunctionDef arguments args NameParam defaults body Expr Str Expr Call AttributeLoad AttributeLoad NameLoad attr attr Dict Str Str Str TupleLoad Str NameLoad Str Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr ListLoad TupleLoad AttributeLoad NameLoad attr Str TupleLoad AttributeLoad NameLoad attr Str decorator_list decorator_list
N/A twisted.trial.unittest TestCase twisted.python.failure Failure N/A N/A N/A syslog stdsyslog N/A N/A N/A ImportError N/A N/A stdsyslog None N/A twisted.python syslog SyslogObserverTests N/A TestCase N/A N/A 
    Tests for L{SyslogObserver} which sends Twisted log events to the syslog.
     N/A events None N/A N/A stdsyslog None N/A N/A skip syslog is not supported on this platform setUp N/A N/A self N/A N/A N/A N/A N/A self patch N/A syslog SyslogObserver openlog N/A self openlog N/A N/A N/A self patch N/A syslog SyslogObserver syslog N/A self syslog N/A N/A self observer N/A N/A syslog SyslogObserver SyslogObserverTests N/A openlog N/A N/A self prefix options facility N/A N/A N/A N/A self logOpened N/A prefix options facility N/A N/A self events N/A N/A syslog N/A N/A self options message N/A N/A N/A N/A N/A N/A self events append N/A options message N/A test_emitWithoutMessage N/A N/A self N/A N/A N/A 
        L{SyslogObserver.emit} ignores events with an empty value for the
        C{'message'} key.
         N/A N/A N/A N/A self observer emit N/A message isError system N/A False - N/A N/A N/A self assertEqual N/A self events N/A N/A test_emitCustomPriority N/A N/A self N/A N/A N/A 
        L{SyslogObserver.emit} uses the value of the C{'syslogPriority'} as the
        syslog priority, if that key is present in the event dictionary.
         N/A N/A N/A N/A self observer emit N/A message isError system syslogPriority N/A hello, world False - N/A stdsyslog LOG_DEBUG N/A N/A N/A self assertEqual N/A self events N/A N/A N/A stdsyslog LOG_DEBUG [-] hello, world N/A test_emitErrorPriority N/A N/A self N/A N/A N/A 
        L{SyslogObserver.emit} uses C{LOG_ALERT} if the event represents an
        error.
         N/A N/A N/A N/A self observer emit N/A message isError system failure N/A hello, world True - N/A Failure N/A Exception foo N/A N/A N/A self assertEqual N/A self events N/A N/A N/A stdsyslog LOG_ALERT [-] hello, world N/A test_emitCustomPriorityOverridesError N/A N/A self N/A N/A N/A 
        L{SyslogObserver.emit} uses the value of the C{'syslogPriority'} key if
        it is specified even if the event dictionary represents an error.
         N/A N/A N/A N/A self observer emit N/A message isError system syslogPriority failure N/A hello, world True - N/A stdsyslog LOG_NOTICE N/A Failure N/A Exception bar N/A N/A N/A self assertEqual N/A self events N/A N/A N/A stdsyslog LOG_NOTICE [-] hello, world N/A test_emitCustomFacility N/A N/A self N/A N/A N/A 
        L{SyslogObserver.emit} uses the value of the C{'syslogPriority'} as the
        syslog priority, if that key is present in the event dictionary.
         N/A N/A N/A N/A self observer emit N/A message isError system syslogFacility N/A hello, world False - N/A stdsyslog LOG_CRON N/A N/A N/A self assertEqual N/A self events N/A N/A N/A N/A stdsyslog LOG_INFO N/A stdsyslog LOG_CRON [-] hello, world N/A test_emitCustomSystem N/A N/A self N/A N/A N/A 
        L{SyslogObserver.emit} uses the value of the C{'system'} key to prefix
        the logged message.
         N/A N/A N/A N/A self observer emit N/A message isError system N/A hello, world False nonDefaultSystem N/A N/A N/A self assertEqual N/A self events N/A N/A N/A stdsyslog LOG_INFO [nonDefaultSystem] hello, world N/A test_emitMessage N/A N/A self N/A N/A N/A 
        L{SyslogObserver.emit} logs the value of the C{'message'} key of the
        event dictionary it is passed to the syslog.
         N/A N/A N/A N/A self observer emit N/A message isError system N/A hello, world False - N/A N/A N/A self assertEqual N/A self events N/A N/A N/A stdsyslog LOG_INFO [-] hello, world N/A test_emitMultilineMessage N/A N/A self N/A N/A N/A 
        Each line of a multiline message is emitted separately to the syslog.
         N/A N/A N/A N/A self observer emit N/A message isError system N/A hello,
world False - N/A N/A N/A self assertEqual N/A self events N/A N/A N/A stdsyslog LOG_INFO [-] hello, N/A N/A stdsyslog LOG_INFO [-] 	world N/A test_emitStripsTrailingEmptyLines N/A N/A self N/A N/A N/A 
        Trailing empty lines of a multiline message are omitted from the
        messages sent to the syslog.
         N/A N/A N/A N/A self observer emit N/A message isError system N/A hello,
world

 False - N/A N/A N/A self assertEqual N/A self events N/A N/A N/A stdsyslog LOG_INFO [-] hello, N/A N/A stdsyslog LOG_INFO [-] 	world N/A N/A