%PDF- %PDF-
Mini Shell

Mini Shell

Direktori : /lib/python3/dist-packages/twisted/logger/__pycache__/
Upload File :
Create Path :
Current File : //lib/python3/dist-packages/twisted/logger/__pycache__/_levels.cpython-312.pyc

�

Ϫ�f���D�dZddlmZmZGd�de�ZGd�de�Zy)z
Log levels.
�)�
NamedConstant�Namesc�,��eZdZdZdeddf�fd�Z�xZS)�InvalidLogLevelErrorzS
    Someone tried to use a L{LogLevel} that is unknown to the logging system.
    �level�returnNc�D��t�|�t|��||_y)z=
        @param level: A log level from L{LogLevel}.
        N)�super�__init__�strr)�selfr�	__class__s  ��8/usr/lib/python3/dist-packages/twisted/logger/_levels.pyrzInvalidLogLevelError.__init__s���	����U��$���
�)�__name__�
__module__�__qualname__�__doc__rr�
__classcell__)rs@rrrs �����m����rrc�p�eZdZdZe�Ze�Ze�Ze�Ze�Z	e
dedefd��Zy)�LogLevela�
    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.
    �namerc�V�	|j|�S#t$rt|��wxYw)a
        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)�clsrs  r�
levelWithNamezLogLevel.levelWithNameBs2��	-��#�#�D�)�)���	-�&�t�,�,�	-�s��(N)
rrrrr�debug�info�warn�error�critical�classmethodrr�rrrrsM�� �D
�O�E��?�D��?�D��O�E���H��-��-��-��-rrN)r�
constantlyrr�	Exceptionrrr$rr�<module>r's'��
�,�
�9�
�8-�u�8-r

Zerion Mini Shell 1.0