
    h,	                     ~    S r SSKJrJrJrJrJr  SSKJr  \(       a  SSK	J
r
  \\\4   r\\S      r " S S\5      rg	)
z
Logger interfaces.
    )TYPE_CHECKINGAnyDictListTuple)	Interface   )Logger)r
   ILogObserverc                   *    \ rS rSrSrS\SS4S jrSrg)r      z
An observer which can handle log events.

Unlike most interfaces within Twisted, an L{ILogObserver} I{must be
thread-safe}.  Log observers may be called indiscriminately from many
different threads, as any thread may wish to log a message at any time.
eventreturnNc                     g)a  
Log an event.

@param event: A dictionary with arbitrary keys as defined by the
    application emitting logging events, as well as keys added by the
    logging system.  The logging system reserves the right to set any
    key beginning with the prefix C{"log_"}; applications should not
    use any key so named.  Currently, the following keys are used by
    the logging system in some way, if they are present (they are all
    optional):

        - C{"log_format"}: a PEP-3101-style format string which draws
          upon the keys in the event as its values, used to format the
          event for human consumption.

        - C{"log_flattened"}: a dictionary mapping keys derived from
          the names and format values used in the C{"log_format"}
          string to their values.  This is used to preserve some
          structured information for use with
          L{twisted.logger.extractField}.

        - C{"log_trace"}: A L{list} designed to capture information
          about which L{LogPublisher}s have observed the event.

        - C{"log_level"}: a L{log level
          <twisted.logger.LogLevel>} constant, indicating the
          importance of and audience for this event.

        - C{"log_namespace"}: a namespace for the emitter of the event,
          given as a L{str}.

        - C{"log_system"}: a string indicating the network event or
          method call which resulted in the message being logged.
N )r   s    a/root/1688_scrapy/alibaba-scraper/venv/lib/python3.13/site-packages/twisted/logger/_interfaces.py__call__ILogObserver.__call__   s        r   )__name__
__module____qualname____firstlineno____doc__LogEventr   __static_attributes__r   r   r   r   r      s    " "T "r   r   N)r   typingr   r   r   r   r   zope.interfacer   _loggerr
   strr   LogTracer   r   r   r   <module>r"      sF    9 8 $ S>./0+9 +r   