
    h                     D    S r SSKJrJr   " S S\5      r " S S\5      rg)z
Log levels.
    )NamedConstantNamesc                   8   ^  \ rS rSrSrS\SS4U 4S jjrSrU =r$ )InvalidLogLevelError   zK
Someone tried to use a L{LogLevel} that is unknown to the logging system.
levelreturnNc                 B   > [         TU ]  [        U5      5        Xl        g)z-
@param level: A log level from L{LogLevel}.
N)super__init__strr   )selfr   	__class__s     ]/root/1688_scrapy/alibaba-scraper/venv/lib/python3.13/site-packages/twisted/logger/_levels.pyr   InvalidLogLevelError.__init__   s     	U$
    )r   )	__name__
__module____qualname____firstlineno____doc__r   r   __static_attributes____classcell__)r   s   @r   r   r      s     m   r   r   c                   z    \ rS rSrSr\" 5       r\" 5       r\" 5       r\" 5       r	\" 5       r
\S\S\4S j5       rSrg)LogLevel   a  
Constants describing log levels.

@cvar debug: Debugging events: Information of use to a developer of the
    software, not generally of interest to someone running the software
    unless they are attempting to diagnose a software issue.

@cvar info: Informational events: Routine information about the status of
    an application, such as incoming connections, startup of a subsystem,
    etc.

@cvar warn: Warning events: Events that may require greater attention than
    informational events but are not a systemic failure condition, such as
    authorization failures, bad data from a network client, etc.  Such
    events are of potential interest to system administrators, and should
    ideally be phrased in such a way, or documented, so as to indicate an
    action that an administrator might take to mitigate the warning.

@cvar error: Error conditions: Events indicating a systemic failure, such
    as programming errors in the form of unhandled exceptions, loss of
    connectivity to an external system without which no useful work can
    proceed, such as a database or API endpoint, or resource exhaustion.
    Similarly to warnings, errors that are related to operational
    parameters may be actionable to system administrators and should
    provide references to resources which an administrator might use to
    resolve them.

@cvar critical: Critical failures: Errors indicating systemic failure (ie.
    service outage), data corruption, imminent data loss, etc. which must
    be handled immediately.  This includes errors unanticipated by the
    software, such as unhandled exceptions, wherein the cause and
    consequences are unknown.
namer	   c                 X     U R                  U5      $ ! [         a    [        U5      ef = f)z
Get the log level with the given name.

@param name: The name of a log level.

@return: The L{LogLevel} with the specified C{name}.

@raise InvalidLogLevelError: if the C{name} does not name a valid log
    level.
)lookupByName
ValueErrorr   )clsr   s     r   levelWithNameLogLevel.levelWithNameB   s2    	-##D)) 	-&t,,	-s    ) N)r   r   r   r   r   r   debuginfowarnerrorcriticalclassmethodr   r"   r   r$   r   r   r   r      sM     D OE?D?DOEH- - - -r   r   N)r   
constantlyr   r   	Exceptionr   r   r$   r   r   <module>r-      s'   
 ,
9 
8-u 8-r   