Module Expr Str ImportFrom alias alias Import alias Import alias Import alias ImportFrom alias Import alias ImportFrom alias ImportFrom alias alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias ClassDef bases body Expr Str decorator_list ClassDef bases NameLoad body Expr Str FunctionDef arguments args NameParam defaults body Expr Str decorator_list decorator_list Expr Call AttributeLoad NameLoad attr NameLoad Dict Str Str Num Str FunctionDef arguments args NameParam NameParam defaults vararg kwarg body Assign NameStore Call AttributeLoad Call AttributeLoad NameLoad attr NameLoad attr Expr Call AttributeLoad NameLoad attr NameLoad Return Call AttributeLoad NameLoad attr Dict NameLoad NameLoad NameLoad NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults vararg kwarg body Expr Str TryExcept body Assign NameStore Call AttributeLoad NameLoad attr handlers ExceptHandler type NameLoad body Raise ExceptHandler body Assign NameStore Str Expr Call NameLoad keyword NameLoad TryExcept body Return Call NameLoad Dict Str NameLoad NameLoad NameLoad NameLoad handlers ExceptHandler type NameLoad body Raise ExceptHandler body Expr Call NameLoad keyword NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults NameLoad NameLoad kwarg body Expr Str If CompareIs NameLoad NameLoad body Assign NameStore Call AttributeLoad NameLoad attr If Call NameLoad NameLoad AttributeLoad NameLoad attr body Expr Call NameLoad keyword NameLoad keyword NameLoad keyword Num NameLoad orelse If Call NameLoad NameLoad NameLoad body Expr Call NameLoad keyword Call AttributeLoad NameLoad attr NameLoad keyword NameLoad keyword Num NameLoad orelse Expr Call NameLoad Call NameLoad NameLoad keyword NameLoad keyword Num NameLoad decorator_list Assign NameStore NameLoad ClassDef bases body Expr Str FunctionDef arguments args NameParam defaults body Expr Str Return Str decorator_list decorator_list ClassDef bases body Expr Str Assign NameStore ListLoad Str FunctionDef arguments args NameParam defaults body Assign AttributeStore NameLoad attr ListLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Assert Call NameLoad NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad decorator_list FunctionDef arguments args NameParam defaults vararg kwarg body Expr Str Assign NameStore Call AttributeLoad BoolOpOr Call AttributeLoad NameLoad attr NameLoad Dict attr Expr Call AttributeLoad NameLoad attr NameLoad Assign SubscriptStore NameLoad Index Str NameLoad Assign SubscriptStore NameLoad Index Str Call AttributeLoad NameLoad attr For NameStore Call NameLoad BinOpSub Call NameLoad AttributeLoad NameLoad attr Num Num Num body TryExcept body Expr Call SubscriptLoad AttributeLoad NameLoad attr Index NameLoad NameLoad handlers ExceptHandler type NameLoad body Raise ExceptHandler type NameLoad body Raise ExceptHandler body Assign NameStore SubscriptLoad AttributeLoad NameLoad attr Index NameLoad Assign SubscriptStore AttributeLoad NameLoad attr Index NameLoad Lambda arguments args NameParam defaults NameLoad TryExcept body Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr BinOpMod Str TupleLoad NameLoad handlers ExceptHandler body Pass Assign SubscriptStore AttributeLoad NameLoad attr Index NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Expr Str Expr Call AttributeLoad NameLoad attr keyword NameLoad keyword NameLoad keyword Num decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam NameParam NameParam defaults NameLoad NameLoad body Expr Str If CompareIs NameLoad NameLoad body Expr Call AttributeLoad NameLoad attr keyword NameLoad keyword Call AttributeLoad NameLoad attr NameLoad keyword NameLoad keyword NameLoad keyword Str orelse If CompareLt AttributeLoad NameLoad attr TupleLoad Num Num body Expr Call NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad orelse Expr Call NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad decorator_list decorator_list Expr Call NameLoad NameLoad TryExcept body Expr NameLoad handlers ExceptHandler type NameLoad body Assign NameStore Call NameLoad Assign NameStore AttributeLoad NameLoad attr Assign NameStore AttributeLoad NameLoad attr Assign NameStore AttributeLoad NameLoad attr Assign NameStore AttributeLoad NameLoad attr FunctionDef arguments args NameParam NameParam defaults body Expr Str TryExcept body Assign NameStore BinOpMod NameLoad NameLoad handlers ExceptHandler type NameLoad body Raise ExceptHandler body TryExcept body Assign NameStore BinOpMod Str TupleLoad NameLoad NameLoad handlers ExceptHandler body TryExcept body Assign NameStore BinOpMod Str TupleLoad NameLoad handlers ExceptHandler body Assign NameStore Str Return NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore SubscriptLoad NameLoad Index Str If UnaryOpNot NameLoad body If BoolOpAnd SubscriptLoad NameLoad Index Str CompareIn Str NameLoad body Assign NameStore BinOpAdd BinOpAdd BoolOpOr Call AttributeLoad NameLoad attr Str Str Str Call AttributeLoad SubscriptLoad NameLoad Index Str attr orelse If CompareIn Str NameLoad body Assign NameStore Call NameLoad SubscriptLoad NameLoad Index Str NameLoad orelse Return orelse Assign NameStore Call AttributeLoad Str attr Call NameLoad AttributeLoad NameLoad attr NameLoad Return NameLoad decorator_list ClassDef bases body Expr Str Assign NameStore NameLoad FunctionDef arguments args NameParam NameParam defaults body Assign AttributeStore NameLoad attr AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Assign NameStore BinOpSub Call AttributeLoad NameLoad attr NameLoad Call AttributeLoad NameLoad attr NameLoad Return BinOpAdd BinOpMult AttributeLoad NameLoad attr BinOpMult BinOpMult Num Num Num AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str If CompareIsNot AttributeLoad NameLoad attr NameLoad body Return Call AttributeLoad Call AttributeLoad NameLoad attr NameLoad attr AttributeLoad NameLoad attr Assign NameStore UnaryOpUSub Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr BinOpAdd NameLoad NameLoad Assign NameStore Call NameLoad Call NameLoad BinOpDiv BinOpDiv NameLoad Num Num Assign NameStore Call NameLoad Call NameLoad BinOpMod BinOpDiv NameLoad Num Num If CompareLt NameLoad Num body Assign NameStore Str orelse Assign NameStore Str Return BinOpMod Str TupleLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Assign NameStore Call NameLoad NameLoad If CompareIs NameLoad NameLoad body Return Assign NameStore Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Index Str Assign NameStore Dict Str Str SubscriptLoad NameLoad Index Str Call AttributeLoad NameLoad attr Str Str Assign NameStore Call NameLoad Str NameLoad Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr BinOpAdd BinOpAdd NameLoad Str NameLoad Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Expr Str Expr Call NameLoad AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Expr Str Expr Call NameLoad AttributeLoad NameLoad attr decorator_list decorator_list ClassDef bases NameLoad body Expr Str FunctionDef arguments args NameParam NameParam defaults Str body Expr Str Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str If CompareIn Str NameLoad body Assign NameStore SubscriptLoad NameLoad Index Str orelse If SubscriptLoad NameLoad Index Str body Assign NameStore AttributeLoad NameLoad attr orelse Assign NameStore AttributeLoad NameLoad attr Assign NameStore Call NameLoad NameLoad If CompareIs NameLoad NameLoad body Return Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Expr Call NameLoad AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Expr Str Expr Call NameLoad AttributeLoad NameLoad attr decorator_list decorator_list ClassDef bases body Expr Str Assign NameStore Num Assign NameStore Num Assign NameStore Str Assign NameStore Str FunctionDef arguments args NameParam NameParam NameParam defaults Num NameLoad body Assign AttributeStore NameLoad attr NameLoad If CompareIs NameLoad NameLoad body Assign NameStore Call AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr Str decorator_list FunctionDef arguments args NameParam defaults body Pass decorator_list FunctionDef arguments args NameParam defaults body Return Num decorator_list FunctionDef arguments args NameParam defaults body Pass decorator_list FunctionDef arguments args NameParam defaults body Raise Call NameLoad Str decorator_list Assign NameStore NameLoad Assign NameStore NameLoad Assign NameStore NameLoad Assign NameStore NameLoad FunctionDef arguments args NameParam NameParam defaults body If BoolOpAnd UnaryOpNot NameLoad Call NameLoad NameLoad NameLoad body Assign NameStore Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad BinOpAdd AttributeLoad NameLoad attr NameLoad attr Str Assign AttributeStore NameLoad attr SubscriptLoad NameLoad Index Num Assign NameStore SubscriptLoad NameLoad Slice Num Num For NameStore NameLoad body Expr Call NameLoad NameLoad keyword Num keyword AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam defaults body For NameStore NameLoad body If BoolOpAnd UnaryOpNot NameLoad Call NameLoad NameLoad NameLoad body Assign NameStore Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Expr Call NameLoad NameLoad keyword Num keyword AttributeLoad NameLoad attr decorator_list decorator_list TryExcept body Expr NameLoad handlers ExceptHandler type NameLoad body Assign NameStore NameLoad FunctionDef arguments args NameParam defaults vararg kwarg body Expr Str If Call NameLoad NameLoad NameLoad body Return Assign NameStore Call NameLoad NameLoad Expr Call NameLoad AttributeLoad NameLoad attr NameLoad NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults Num body Expr Str Global identifier identifier If UnaryOpNot NameLoad body Assign NameStore AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr NameLoad If NameLoad body Expr Call AttributeLoad NameLoad attr Assign NameStore NameLoad Expr Call NameLoad NameLoad Expr Call NameLoad Str If NameLoad body Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad decorator_list ClassDef bases body Assign NameStore Num FunctionDef arguments args NameParam defaults body Pass decorator_list FunctionDef arguments args NameParam NameParam defaults body Pass decorator_list FunctionDef arguments args NameParam defaults body Pass decorator_list FunctionDef arguments args NameParam defaults body Pass decorator_list decorator_list FunctionDef arguments args defaults body Expr Str Global identifier Assign NameStore Call NameLoad decorator_list TryExcept body Expr NameLoad handlers ExceptHandler type NameLoad body Assign NameStore Call NameLoad Num Call NameLoad AttributeLoad NameLoad attr Str NameLoad Assign NameStore Call NameLoad Num Call NameLoad AttributeLoad NameLoad attr Str NameLoad ClassDef bases body Expr Str Assign NameStore AttributeLoad NameLoad attr FunctionDef arguments args NameParam NameParam defaults body If SubscriptLoad NameLoad Index Str body If CompareIn Str NameLoad body Assign NameStore BinOpAdd BinOpAdd BoolOpOr Call AttributeLoad NameLoad attr Str Str Str Call AttributeLoad SubscriptLoad NameLoad Index Str attr orelse Assign NameStore BinOpAdd Call AttributeLoad Str attr ListComp Call NameLoad NameLoad comprehension NameStore SubscriptLoad NameLoad Index Str Str Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr decorator_list FunctionDef arguments args NameParam defaults body Expr Call NameLoad AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Expr Call NameLoad AttributeLoad NameLoad attr decorator_list decorator_list TryExcept body Expr NameLoad handlers ExceptHandler type NameLoad body Assign NameStore Call NameLoad Expr Call AttributeLoad NameLoad attr
N/A N/A 
Logging and metrics infrastructure.
 __future__ division absolute_import N/A sys N/A time N/A warnings datetime datetime N/A logging zope.interface Interface twisted.python.compat unicode _PY3 twisted.python context twisted.python reflect twisted.python util twisted.python failure twisted.python.threadable synchronize ILogContext N/A N/A N/A 
    Actually, this interface is just a synonym for the dictionary interface,
    but it serves as a key for the default information in a log.

    I do not inherit from C{Interface} because the world is a cruel place.
     N/A ILogObserver N/A Interface N/A N/A 
    An observer which can do something with log events.

    Given that most log observers are actually bound methods, it's okay to not
    explicitly declare provision of this interface.
     __call__ N/A N/A eventDict N/A N/A N/A 
        Log an event.

        @type eventDict: C{dict} with C{str} keys.
        @param eventDict: A dictionary with arbitrary keys.  However, these
            keys are often available:
              - C{message}: A C{tuple} of C{str} containing messages to be
                logged.
              - C{system}: A C{str} which indicates the "system" which is
                generating this event.
              - C{isError}: A C{bool} indicating whether this event represents
                an error.
              - C{failure}: A L{failure.Failure} instance
              - C{why}: Used as header of the traceback in case of errors.
              - C{format}: A string format used in place of C{message} to
                customize the event.  The intent is for the observer to format
                a message by doing something like C{format % eventDict}.
         N/A N/A N/A N/A N/A context setDefault ILogContext N/A isError system 0 - callWithContext N/A N/A ctx func N/A args kw N/A N/A newCtx N/A N/A N/A N/A context get ILogContext copy N/A N/A N/A newCtx update ctx N/A N/A N/A context call N/A ILogContext newCtx func args kw N/A callWithLogger N/A N/A logger func N/A args kw N/A N/A 
    Utility method which wraps a function in a try:/except:, logs a failure if
    one occurs, and uses the system's logPrefix.
     N/A N/A N/A lp N/A N/A logger logPrefix N/A N/A N/A KeyboardInterrupt N/A N/A N/A N/A N/A lp (buggy logPrefix method) N/A N/A err system lp N/A N/A N/A N/A callWithContext N/A system lp func args kw N/A N/A N/A KeyboardInterrupt N/A N/A N/A N/A N/A N/A err system lp N/A err N/A N/A _stuff _why N/A None None kw N/A N/A 
    Write a failure to the log.

    The C{_stuff} and C{_why} parameters use an underscore prefix to lessen
    the chance of colliding with a keyword argument the application wishes
    to pass.  It is intended that they be supplied with arguments passed
    positionally, not by keyword.

    @param _stuff: The failure to log.  If C{_stuff} is C{None} a new
        L{Failure} will be created from the current exception state.  If
        C{_stuff} is an C{Exception} instance it will be wrapped in a
        L{Failure}.
    @type _stuff: C{NoneType}, C{Exception}, or L{Failure}.

    @param _why: The source of this failure.  This will be logged along with
        C{_stuff} and should describe the context in which the failure
        occurred.
    @type _why: C{str}
     N/A N/A _stuff None N/A N/A _stuff N/A N/A failure Failure N/A N/A isinstance _stuff N/A failure Failure N/A N/A N/A msg failure _stuff why _why isError 1 kw N/A N/A N/A isinstance _stuff Exception N/A N/A N/A msg failure N/A N/A failure Failure _stuff why _why isError 1 kw N/A N/A N/A msg N/A repr _stuff why _why isError 1 kw N/A N/A deferr err Logger N/A N/A N/A 
    This represents a class which may 'own' a log. Used by subclassing.
     logPrefix N/A N/A self N/A N/A N/A 
        Override this method to insert custom logging behavior.  Its
        return value will be inserted in front of every line.  It may
        be called more times than the number of output lines.
         N/A - N/A N/A LogPublisher N/A N/A N/A 
    Class for singleton log message publishing.
     N/A synchronized N/A msg __init__ N/A N/A self N/A N/A N/A N/A self observers N/A N/A addObserver N/A N/A self other N/A N/A N/A 
        Add a new observer.

        @type other: Provider of L{ILogObserver}
        @param other: A callable object that will be called with each new log
            message (a dict).
         N/A N/A callable other N/A N/A N/A N/A self observers append other N/A removeObserver N/A N/A self other N/A N/A N/A 
        Remove an observer.
         N/A N/A N/A N/A self observers remove other N/A msg N/A N/A self N/A message kw N/A N/A 
        Log a new message.

        The message should be a native string, i.e. bytes on Python 2 and
        Unicode on Python 3. For compatibility with both use the native string
        syntax, for example::

        >>> log.msg('Hello, world.')

        You MUST avoid passing in Unicode on Python 2, and the form::

        >>> log.msg('Hello ', 'world.')

        This form only works (sometimes) by accident.

        Keyword arguments will be converted into items in the event
        dict that is passed to L{ILogObserver} implementations.
        Each implementation, in turn, can define keys that are used
        by it specifically, in addition to common keys listed at
        L{ILogObserver.__call__}.

        For example, to set the C{system} parameter while logging
        a message::

        >>> log.msg('Started', system='Foo')

         N/A actualEventDict N/A N/A N/A N/A N/A context get ILogContext N/A copy N/A N/A N/A actualEventDict update kw N/A N/A actualEventDict N/A message message N/A N/A actualEventDict N/A time N/A N/A time time N/A i N/A range N/A N/A len N/A self observers 1 -1 -1 N/A N/A N/A N/A N/A N/A N/A self observers N/A i actualEventDict N/A N/A N/A KeyboardInterrupt N/A N/A N/A N/A UnicodeEncodeError N/A N/A N/A N/A N/A observer N/A N/A self observers N/A i N/A N/A N/A self observers N/A i N/A N/A N/A event N/A None N/A N/A N/A N/A N/A self _err N/A N/A failure Failure N/A Log observer %s failed. N/A observer N/A N/A N/A N/A N/A N/A N/A self observers N/A i observer N/A _err N/A N/A self failure why N/A N/A N/A 
        Log a failure.

        Similar in functionality to the global {err} function, but the failure
        gets published only to observers attached to this publisher.

        @param failure: The failure to log.
        @type failure: L{Failure}.

        @param why: The source of this failure.  This will be logged along with
            the C{failure} and should describe the context in which the failure
            occurred.
        @type why: C{str}
         N/A N/A N/A self msg failure failure why why isError 1 N/A showwarning N/A N/A self message category filename lineno file line N/A None None N/A N/A 
        Twisted-enabled wrapper around L{warnings.showwarning}.

        If C{file} is C{None}, the default behaviour is to emit the warning to
        the log system, otherwise the original L{warnings.showwarning} Python
        function is called.
         N/A N/A file None N/A N/A N/A N/A self msg warning message category N/A N/A reflect qual category filename filename lineno lineno format %(filename)s:%(lineno)s: %(category)s: %(warning)s N/A N/A N/A N/A sys version_info N/A 2 6 N/A N/A N/A _oldshowwarning message category filename lineno file N/A N/A N/A _oldshowwarning message category filename lineno file line N/A N/A N/A N/A synchronize LogPublisher N/A N/A N/A theLogPublisher N/A N/A N/A NameError N/A N/A theLogPublisher N/A LogPublisher N/A addObserver N/A theLogPublisher addObserver N/A removeObserver N/A theLogPublisher removeObserver N/A msg N/A theLogPublisher msg N/A showwarning N/A theLogPublisher showwarning _safeFormat N/A N/A fmtString fmtDict N/A N/A N/A 
    Try to format the string C{fmtString} using C{fmtDict} arguments,
    swallowing all errors to always return a string.
     N/A N/A N/A text N/A fmtString fmtDict N/A N/A N/A KeyboardInterrupt N/A N/A N/A N/A N/A N/A N/A text N/A Invalid format string or unformattable object in log message: %r, %s N/A fmtString fmtDict N/A N/A N/A N/A N/A N/A text N/A UNFORMATTABLE OBJECT WRITTEN TO LOG with fmt %r, MESSAGE LOST N/A fmtString N/A N/A N/A N/A text PATHOLOGICAL ERROR IN BOTH FORMAT STRING AND MESSAGE DETAILS, MESSAGE LOST N/A text N/A textFromEventDict N/A N/A eventDict N/A N/A N/A 
    Extract text from an event dict passed to a log observer. If it cannot
    handle the dict, it returns None.

    The possible keys of eventDict are:
     - C{message}: by default, it holds the final text. It's required, but can
       be empty if either C{isError} or C{format} is provided (the first
       having the priority).
     - C{isError}: boolean indicating the nature of the event.
     - C{failure}: L{failure.Failure} instance, required if the event is an
       error.
     - C{why}: if defined, used as header of the traceback in case of errors.
     - C{format}: string format used in place of C{message} to customize
       the event. It uses all keys present in C{eventDict} to format
       the text.
    Other keys will be used when applying the C{format}, or ignored.
     N/A edm N/A eventDict N/A message N/A N/A edm N/A N/A N/A N/A eventDict N/A isError N/A failure eventDict N/A N/A text N/A N/A N/A N/A N/A eventDict get why Unhandled Error N/A N/A N/A eventDict N/A failure getTraceback N/A N/A N/A format eventDict N/A N/A text N/A _safeFormat N/A eventDict N/A format eventDict N/A N/A N/A N/A text N/A N/A join N/A map N/A reflect safe_str edm N/A text N/A FileLogObserver N/A N/A N/A 
    Log observer that writes to a file-like object.

    @type timeFormat: C{str} or C{NoneType}
    @ivar timeFormat: If not C{None}, the format string passed to strftime().
     N/A timeFormat None __init__ N/A N/A self f N/A N/A N/A N/A self write N/A f write N/A N/A self flush N/A f flush N/A getTimezoneOffset N/A N/A self when N/A N/A N/A 
        Return the current local timezone offset from UTC.

        @type when: C{int}
        @param when: POSIX (ie, UTC) timestamp for which to find the offset.

        @rtype: C{int}
        @return: The number of seconds offset from UTC.  West is positive,
        east is negative.
         N/A offset N/A N/A N/A datetime utcfromtimestamp when N/A N/A datetime fromtimestamp when N/A N/A N/A N/A offset days N/A N/A 60 60 24 N/A offset seconds N/A formatTime N/A N/A self when N/A N/A N/A 
        Format the given UTC value as a string representing that time in the
        local timezone.

        By default it's formatted as a ISO8601-like string (ISO8601 date and
        ISO8601 time separated by a space). It can be customized using the
        C{timeFormat} attribute, which will be used as input for the underlying
        L{datetime.datetime.strftime} call.

        @type when: C{int}
        @param when: POSIX (ie, UTC) timestamp for which to find the offset.

        @rtype: C{str}
         N/A N/A N/A self timeFormat None N/A N/A N/A N/A N/A N/A datetime fromtimestamp when strftime N/A self timeFormat N/A tzOffset N/A N/A N/A self getTimezoneOffset when N/A when N/A N/A datetime utcfromtimestamp N/A when tzOffset N/A tzHour N/A abs N/A int N/A N/A tzOffset 60 60 N/A tzMin N/A abs N/A int N/A N/A tzOffset 60 60 N/A N/A tzOffset 0 N/A N/A tzSign - N/A N/A tzSign + N/A N/A %d-%02d-%02d %02d:%02d:%02d%s%02d%02d N/A N/A when year N/A when month N/A when day N/A when hour N/A when minute N/A when second tzSign tzHour tzMin N/A emit N/A N/A self eventDict N/A N/A N/A text N/A textFromEventDict eventDict N/A N/A text None N/A N/A N/A timeStr N/A N/A self formatTime N/A eventDict N/A time N/A fmtDict N/A system text N/A eventDict N/A system N/A N/A text replace N/A msgStr N/A _safeFormat [%(system)s] %(text)s
 fmtDict N/A N/A N/A util untilConcludes N/A self write N/A N/A timeStr msgStr N/A N/A N/A util untilConcludes N/A self flush N/A start N/A N/A self N/A N/A N/A 
        Start observing log events.
         N/A N/A addObserver N/A self emit N/A stop N/A N/A self N/A N/A N/A 
        Stop observing log events.
         N/A N/A removeObserver N/A self emit N/A N/A PythonLoggingObserver N/A object N/A N/A 
    Output twisted messages to Python standard library L{logging} module.

    WARNING: specific logging configurations (example: network) can lead to
    a blocking system. Nothing is done here to prevent that, so be sure to not
    use this: code within Twisted, such as twisted.web, assumes that logging
    does not block.
     __init__ N/A N/A self loggerName N/A twisted N/A N/A 
        @param loggerName: identifier used for getting logger.
        @type loggerName: C{str}
         N/A N/A self logger N/A N/A logging getLogger loggerName N/A emit N/A N/A self eventDict N/A N/A N/A 
        Receive a twisted log entry, format it and bridge it to python.

        By default the logging level used is info; log.err produces error
        level, and you can customize the level by using the C{logLevel} key::

        >>> log.msg('debugging', logLevel=logging.DEBUG)

         N/A N/A logLevel eventDict N/A N/A level N/A eventDict N/A logLevel N/A N/A N/A eventDict N/A isError N/A N/A level N/A logging ERROR N/A N/A level N/A logging INFO N/A text N/A textFromEventDict eventDict N/A N/A text None N/A N/A N/A N/A N/A N/A self logger log level text N/A start N/A N/A self N/A N/A N/A 
        Start observing log events.
         N/A N/A addObserver N/A self emit N/A stop N/A N/A self N/A N/A N/A 
        Stop observing log events.
         N/A N/A removeObserver N/A self emit N/A N/A StdioOnnaStick N/A N/A N/A 
    Class that pretends to be stdout/err, and turns writes into log messages.

    @ivar isError: boolean indicating whether this is stderr, in which cases
                   log messages will be logged as errors.

    @ivar encoding: unicode encoding used to encode any unicode strings
                    written to this object.
     N/A closed 0 N/A softspace 0 N/A mode wb N/A name <stdio (log)> __init__ N/A N/A self isError encoding N/A 0 None N/A N/A N/A self isError isError N/A N/A encoding None N/A N/A encoding N/A N/A sys getdefaultencoding N/A N/A self encoding encoding N/A N/A self buf N/A close N/A N/A self N/A N/A N/A N/A fileno N/A N/A self N/A N/A N/A -1 N/A flush N/A N/A self N/A N/A N/A N/A read N/A N/A self N/A N/A N/A N/A IOError can't read from the log! N/A N/A readline read N/A readlines read N/A seek read N/A tell read write N/A N/A self data N/A N/A N/A N/A N/A _PY3 N/A isinstance data unicode N/A N/A data N/A N/A data encode N/A self encoding N/A d N/A N/A N/A N/A self buf data split N/A N/A self buf N/A d N/A -1 N/A messages N/A d N/A 0 -1 N/A message messages N/A N/A N/A msg message printed 1 isError N/A self isError N/A writelines N/A N/A self lines N/A N/A N/A line lines N/A N/A N/A N/A _PY3 N/A isinstance line unicode N/A N/A line N/A N/A line encode N/A self encoding N/A N/A msg line printed 1 isError N/A self isError N/A N/A N/A N/A N/A _oldshowwarning N/A N/A N/A NameError N/A N/A _oldshowwarning None startLogging N/A N/A file N/A a kw N/A N/A 
    Initialize logging to a specified file.

    @return: A L{FileLogObserver} if a new observer is added, None otherwise.
     N/A N/A isinstance file StdioOnnaStick N/A N/A N/A flo N/A FileLogObserver file N/A N/A startLoggingWithObserver N/A flo emit a kw N/A flo N/A startLoggingWithObserver N/A N/A observer setStdout N/A 1 N/A N/A 
    Initialize logging to a specified observer. If setStdout is true
    (defaults to yes), also redirect sys.stdout and sys.stderr
    to the specified file.
     N/A defaultObserver _oldshowwarning N/A N/A _oldshowwarning N/A N/A _oldshowwarning N/A warnings showwarning N/A N/A warnings showwarning showwarning N/A defaultObserver N/A N/A N/A N/A defaultObserver stop N/A defaultObserver None N/A N/A addObserver observer N/A N/A msg Log opened. N/A setStdout N/A N/A N/A sys stdout logfile N/A N/A sys stderr logerr N/A NullFile N/A N/A N/A softspace 0 read N/A N/A self N/A N/A N/A N/A write N/A N/A self bytes N/A N/A N/A N/A flush N/A N/A self N/A N/A N/A N/A close N/A N/A self N/A N/A N/A N/A N/A discardLogs N/A N/A N/A N/A N/A 
    Throw away all logs.
     N/A logfile N/A logfile N/A NullFile N/A N/A N/A N/A logfile N/A N/A N/A NameError N/A N/A logfile N/A StdioOnnaStick 0 N/A getattr N/A sys stdout encoding None N/A logerr N/A StdioOnnaStick 1 N/A getattr N/A sys stderr encoding None DefaultObserver N/A N/A N/A 
    Default observer.

    Will ignore all non-error messages and send error messages to sys.stderr.
    Will be removed when startLogging() is called for the first time.
     N/A stderr N/A sys stderr _emit N/A N/A self eventDict N/A N/A N/A N/A eventDict N/A isError N/A N/A N/A failure eventDict N/A N/A text N/A N/A N/A N/A N/A eventDict get why Unhandled Error N/A N/A N/A eventDict N/A failure getTraceback N/A N/A text N/A N/A N/A join N/A N/A str m N/A m N/A eventDict N/A message N/A N/A N/A N/A self stderr write text N/A N/A N/A N/A self stderr flush N/A start N/A N/A self N/A N/A N/A N/A addObserver N/A self _emit N/A stop N/A N/A self N/A N/A N/A N/A removeObserver N/A self _emit N/A N/A N/A N/A N/A defaultObserver N/A N/A N/A NameError N/A N/A defaultObserver N/A DefaultObserver N/A N/A N/A defaultObserver start