Module Expr Str ImportFrom alias ImportFrom alias alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias ClassDef bases NameLoad body Expr Str FunctionDef arguments args NameParam NameParam NameParam defaults body Expr Str If CompareIsNot Call NameLoad NameLoad NameLoad body Assign AttributeStore NameLoad attr Str orelse Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Assign NameStore Call AttributeLoad NameLoad attr NameLoad If CompareIs NameLoad NameLoad body Assign NameStore Str If CompareIn Str NameLoad body TryExcept body Assign NameStore Call AttributeLoad SubscriptLoad NameLoad Index Str attr handlers ExceptHandler type NameLoad body Assign NameStore Str Assign NameStore Call AttributeLoad Str attr TupleLoad NameLoad NameLoad If CompareIsNot AttributeLoad NameLoad attr NameLoad body Assign NameStore Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr If NameLoad body Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr decorator_list decorator_list Call NameLoad NameLoad FunctionDef arguments args NameParam NameParam defaults NameLoad body Expr Str FunctionDef arguments args NameParam defaults body Return Call NameLoad NameLoad keyword Lambda arguments args NameParam defaults Call NameLoad NameLoad NameLoad decorator_list Return Call NameLoad NameLoad NameLoad decorator_list
N/A N/A 
File log observer.
 zope.interface implementer twisted.python.compat ioType unicode _observer ILogObserver _format formatTime _format timeFormatRFC3339 _format formatEventAsClassicLogText FileLogObserver N/A object N/A N/A 
    Log observer that writes to a file-like object.
     __init__ N/A N/A self outFile formatEvent N/A N/A N/A 
        @param outFile: A file-like object.  Ideally one should be passed which
            accepts L{unicode} data.  Otherwise, UTF-8 L{bytes} will be used.
        @type outFile: L{io.IOBase}

        @param formatEvent: A callable that formats an event.
        @type formatEvent: L{callable} that takes an C{event} argument and
            returns a formatted event as L{unicode}.
         N/A N/A N/A ioType outFile unicode N/A N/A N/A self _encoding utf-8 N/A N/A N/A self _encoding None N/A N/A self _outFile outFile N/A N/A self formatEvent formatEvent N/A __call__ N/A N/A self event N/A N/A N/A 
        Write event to file.

        @param event: An event.
        @type event: L{dict}
         N/A text N/A N/A self formatEvent event N/A N/A text None N/A N/A text N/A N/A log_failure event N/A N/A N/A N/A traceback N/A N/A N/A event N/A log_failure getTraceback N/A N/A N/A Exception N/A N/A traceback (UNABLE TO OBTAIN TRACEBACK FROM EVENT)
 N/A text N/A N/A join N/A text traceback N/A N/A N/A self _encoding None N/A N/A text N/A N/A text encode N/A self _encoding N/A text N/A N/A N/A N/A N/A self _outFile write text N/A N/A N/A N/A self _outFile flush N/A N/A N/A implementer ILogObserver textFileLogObserver N/A N/A outFile timeFormat N/A timeFormatRFC3339 N/A N/A 
    Create a L{FileLogObserver} that emits text to a specified (writable)
    file-like object.

    @param outFile: A file-like object.  Ideally one should be passed which
        accepts L{unicode} data.  Otherwise, UTF-8 L{bytes} will be used.
    @type outFile: L{io.IOBase}

    @param timeFormat: The format to use when adding timestamp prefixes to
        logged events.  If C{None}, or for events with no C{"log_timestamp"}
        key, the default timestamp prefix of C{u"-"} is used.
    @type timeFormat: L{unicode} or C{None}

    @return: A file log observer.
    @rtype: L{FileLogObserver}
     formatEvent N/A N/A event N/A N/A N/A N/A formatEventAsClassicLogText event formatTime N/A N/A N/A e N/A N/A formatTime e timeFormat N/A N/A N/A FileLogObserver outFile formatEvent N/A