Module Expr Str ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias alias ClassDef bases NameLoad body Expr Str FunctionDef arguments args defaults body Expr Str Return SubscriptLoad AttributeLoad Call NameLoad Num attr Index Str decorator_list NameLoad FunctionDef arguments args NameParam NameParam NameParam NameParam defaults NameLoad NameLoad NameLoad body Expr Str If CompareIs NameLoad NameLoad body Assign NameStore Call AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad If CompareIs NameLoad NameLoad body ImportFrom alias Assign AttributeStore NameLoad attr NameLoad orelse Assign AttributeStore NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults NameLoad body Expr Str If CompareIs NameLoad NameLoad body Assign NameStore NameLoad orelse Assign NameStore NameLoad Return Call AttributeLoad NameLoad attr Call AttributeLoad Str attr ListLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad keyword AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Return BinOpMod Str TupleLoad AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults NameLoad kwarg body Expr Str If CompareNotIn NameLoad Call AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr Str Call NameLoad Call NameLoad NameLoad keyword NameLoad keyword NameLoad Return Assign NameStore NameLoad Expr Call AttributeLoad NameLoad attr keyword NameLoad keyword NameLoad keyword AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr keyword NameLoad keyword Call NameLoad If CompareIn Str NameLoad body Expr Call AttributeLoad SubscriptLoad NameLoad Index Str attr TupleLoad NameLoad AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam defaults NameLoad AttributeLoad NameLoad attr kwarg body Expr Str If CompareIs NameLoad NameLoad body Assign NameStore Call NameLoad Expr Call AttributeLoad NameLoad attr NameLoad NameLoad keyword NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults NameLoad kwarg body Expr Str Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults NameLoad kwarg body Expr Str Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults NameLoad kwarg body Expr Str Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults NameLoad kwarg body Expr Str Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults NameLoad kwarg body Expr Str Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad NameLoad decorator_list decorator_list Assign NameStore Call NameLoad Assign NameStore Lambda arguments args NameParam defaults Call AttributeLoad NameLoad attr NameLoad AttributeLoad NameLoad attr
N/A N/A 
Logger class.
 time time twisted.python.compat currentframe twisted.python.failure Failure _levels InvalidLogLevelError LogLevel Logger N/A object N/A N/A 
    A L{Logger} emits log messages to an observer.  You should instantiate it
    as a class or module attribute, as documented in L{this module's
    documentation <twisted.logger>}.
     _namespaceFromCallingContext N/A N/A N/A N/A N/A 
        Derive a namespace from the module containing the caller's caller.

        @return: the fully qualified python name of a module.
        @rtype: L{str} (native string)
         N/A N/A N/A N/A currentframe 2 f_globals N/A __name__ N/A staticmethod __init__ N/A N/A self namespace source observer N/A None None None N/A N/A 
        @param namespace: The namespace for this logger.  Uses a dotted
            notation, as used by python modules.  If not C{None}, then the name
            of the module of the caller is used.
        @type namespace: L{str} (native string)

        @param source: The object which is emitting events via this
            logger; this is automatically set on instances of a class
            if this L{Logger} is an attribute of that class.
        @type source: L{object}

        @param observer: The observer that this logger will send events to.
            If C{None}, use the L{global log publisher <globalLogPublisher>}.
        @type observer: L{ILogObserver}
         N/A N/A namespace None N/A N/A namespace N/A N/A self _namespaceFromCallingContext N/A N/A self namespace namespace N/A N/A self source source N/A N/A observer None N/A _global globalLogPublisher N/A N/A self observer globalLogPublisher N/A N/A N/A self observer observer N/A __get__ N/A N/A self oself type N/A None N/A N/A 
        When used as a descriptor, i.e.::

            # File: athing.py
            class Something(object):
                log = Logger()
                def hello(self):
                    self.log.info("Hello")

        a L{Logger}'s namespace will be set to the name of the class it is
        declared on.  In the above example, the namespace would be
        C{athing.Something}.

        Additionally, its source will be set to the actual object referring to
        the L{Logger}.  In the above example, C{Something.log.source} would be
        C{Something}, and C{Something().log.source} would be an instance of
        C{Something}.
         N/A N/A oself None N/A N/A source type N/A N/A source oself N/A N/A N/A self __class__ N/A N/A . join N/A N/A type __module__ N/A type __name__ source observer N/A self observer N/A __repr__ N/A N/A self N/A N/A N/A N/A <%s %r> N/A N/A N/A self __class__ __name__ N/A self namespace N/A emit N/A N/A self level format N/A None kwargs N/A N/A 
        Emit a log event to all log observers at the given level.

        @param level: a L{LogLevel}

        @param format: a message format using new-style (PEP 3101)
            formatting.  The logging event (which is a L{dict}) is
            used to render this format string.

        @param kwargs: additional key/value pairs to include in the event.
            Note that values which are later mutated may result in
            non-deterministic behavior from observers that schedule work for
            later execution.
         N/A N/A level N/A N/A LogLevel iterconstants N/A N/A N/A N/A self failure Got invalid log level {invalidLevel!r} in {logger}.emit(). N/A Failure N/A InvalidLogLevelError level invalidLevel level logger self N/A N/A event kwargs N/A N/A N/A event update log_logger self log_level level log_namespace N/A self namespace log_source N/A self source log_format format log_time N/A time N/A N/A log_trace event N/A N/A N/A N/A N/A event N/A log_trace append N/A self N/A self observer N/A N/A N/A self observer event N/A failure N/A N/A self format failure level N/A None N/A LogLevel critical kwargs N/A N/A 
        Log an failure and emit a traceback.

        For example::

            try:
                frob(knob)
            except Exception:
                log.failure("While frobbing {knob}", knob=knob)

        or::

            d = deferredFrob(knob)
            d.addErrback(lambda f: log.failure, "While frobbing {knob}",
                         f, knob=knob)

        This method is generally meant to capture unexpected exceptions in
        code; an exception that is caught and handled somehow should be logged,
        if appropriate, via L{Logger.error} instead.  If some unknown exception
        occurs and your code doesn't know how to handle it, as in the above
        example, then this method provides a means to describe the failure in
        nerd-speak.  This is done at L{LogLevel.critical} by default, since no
        corrective guidance can be offered to an user/administrator, and the
        impact of the condition is unknown.

        @param format: a message format using new-style (PEP 3101) formatting.
            The logging event (which is a L{dict}) is used to render this
            format string.

        @param failure: a L{Failure} to log.  If C{None}, a L{Failure} is
            created from the exception in flight.

        @param level: a L{LogLevel} to use.

        @param kwargs: additional key/value pairs to include in the event.
            Note that values which are later mutated may result in
            non-deterministic behavior from observers that schedule work for
            later execution.
         N/A N/A failure None N/A N/A failure N/A Failure N/A N/A N/A self emit level format log_failure failure kwargs N/A debug N/A N/A self format N/A None kwargs N/A N/A 
        Emit a log event at log level L{LogLevel.debug}.

        @param format: a message format using new-style (PEP 3101) formatting.
            The logging event (which is a L{dict}) is used to render this
            format string.

        @param kwargs: additional key/value pairs to include in the event.
            Note that values which are later mutated may result in
            non-deterministic behavior from observers that schedule work for
            later execution.
         N/A N/A N/A self emit N/A LogLevel debug format kwargs N/A info N/A N/A self format N/A None kwargs N/A N/A 
        Emit a log event at log level L{LogLevel.info}.

        @param format: a message format using new-style (PEP 3101) formatting.
            The logging event (which is a L{dict}) is used to render this
            format string.

        @param kwargs: additional key/value pairs to include in the event.
            Note that values which are later mutated may result in
            non-deterministic behavior from observers that schedule work for
            later execution.
         N/A N/A N/A self emit N/A LogLevel info format kwargs N/A warn N/A N/A self format N/A None kwargs N/A N/A 
        Emit a log event at log level L{LogLevel.warn}.

        @param format: a message format using new-style (PEP 3101) formatting.
            The logging event (which is a L{dict}) is used to render this
            format string.

        @param kwargs: additional key/value pairs to include in the event.
            Note that values which are later mutated may result in
            non-deterministic behavior from observers that schedule work for
            later execution.
         N/A N/A N/A self emit N/A LogLevel warn format kwargs N/A error N/A N/A self format N/A None kwargs N/A N/A 
        Emit a log event at log level L{LogLevel.error}.

        @param format: a message format using new-style (PEP 3101) formatting.
            The logging event (which is a L{dict}) is used to render this
            format string.

        @param kwargs: additional key/value pairs to include in the event.
            Note that values which are later mutated may result in
            non-deterministic behavior from observers that schedule work for
            later execution.
         N/A N/A N/A self emit N/A LogLevel error format kwargs N/A critical N/A N/A self format N/A None kwargs N/A N/A 
        Emit a log event at log level L{LogLevel.critical}.

        @param format: a message format using new-style (PEP 3101) formatting.
            The logging event (which is a L{dict}) is used to render this
            format string.

        @param kwargs: additional key/value pairs to include in the event.
            Note that values which are later mutated may result in
            non-deterministic behavior from observers that schedule work for
            later execution.
         N/A N/A N/A self emit N/A LogLevel critical format kwargs N/A N/A N/A _log N/A Logger N/A _loggerFor N/A N/A N/A obj N/A N/A N/A _log __get__ obj N/A obj __class__