HEX
Server: Microsoft-IIS/10.0
System: Windows NT ITPWINWEBSVR22 10.0 build 20348 (Windows Server 2022) AMD64
User: www.conferencesearch.co.uk (0)
PHP: 8.3.30
Disabled: NONE
Upload Files
File: D:/web/hyperflight/apps/inxpress/.venv/Lib/site-packages/flask/__pycache__/logging.cpython-311.pyc
�

��iI	����ddlmZddlZddlZddlZddlmZddlm	Z	ej
rddlmZedd	���Z
dd
�Zeje
��Ze�ejd����dd�ZdS)�)�annotationsN)�
LocalProxy�)�request)�App�return�t.TextIOc�L�trtjdStjS)a�Find the most appropriate error stream for the application. If a request
    is active, log to ``wsgi.errors``, otherwise use ``sys.stderr``.

    If you configure your own :class:`logging.StreamHandler`, you may want to
    use this for the stream. If you are using file or dict configuration and
    can't import this directly, you can refer to it as
    ``ext://flask.logging.wsgi_errors_stream``.
    zwsgi.errors)r�environ�sys�stderr���ID:\web\hyperflight\apps\inxpress\.venv\Lib\site-packages\flask/logging.py�wsgi_errors_streamrs!���.���}�-�-��:�r�logger�logging.Logger�boolc���|����|}|r3t�fd�|jD����rdS|jsn	|j}|�3dS)z�Check if there is a handler in the logging chain that will handle the
    given logger's :meth:`effective level <~logging.Logger.getEffectiveLevel>`.
    c3�.�K�|]}|j�kV��dS)N)�level)�.0�handlerrs  �r�	<genexpr>z$has_level_handler.<locals>.<genexpr>'s*�����F�F�'�w�}��%�F�F�F�F�F�FrTF)�getEffectiveLevel�any�handlers�	propagate�parent)r�currentrs  @r�has_level_handlerr!sv���
�$�$�&�&�E��G�
�!��F�F�F�F�W�5E�F�F�F�F�F�	��4�� �	���.���!��5rz6[%(asctime)s] %(levelname)s in %(module)s: %(message)s�apprc���tj|j��}|jr&|js|�tj��t|��s|�t��|S)a�Get the Flask app's logger and configure it if needed.

    The logger name will be the same as
    :attr:`app.import_name <flask.Flask.name>`.

    When :attr:`~flask.Flask.debug` is enabled, set the logger level to
    :data:`logging.DEBUG` if it is not set.

    If there is no handler for the logger's effective level, add a
    :class:`~logging.StreamHandler` for
    :func:`~flask.logging.wsgi_errors_stream` with a basic format.
    )
�logging�	getLogger�name�debugr�setLevel�DEBUGr!�
addHandler�default_handler)r"rs  r�
create_loggerr,:sf���
�s�x�
(�
(�F�
�y�'���'�����
�&�&�&��V�$�$�+����/�*�*�*��Mr)rr	)rrrr)r"rrr)�
__future__rr$r�typing�t�werkzeug.localr�globalsr�
TYPE_CHECKING�
sansio.apprrr!�
StreamHandlerr+�setFormatter�	Formatterr,rrr�<module>r7s��"�"�"�"�"�"�����
�
�
�
�����%�%�%�%�%�%��������?� ������������������*(�'�'�(:�;�;������G��N�O�O����
�����r