ó
    |ñ:iI	  ã                  óü   • S SK Jr  S SKrS SKrS SKrS SKJr  SSKJ	r	  \R                  (       a  SSKJr  \SS j5       rSS jr\R                  " \5      r\R#                  \R$                  " S	5      5        SS
 jrg)é    )ÚannotationsN)Ú
LocalProxyé   )Úrequest)ÚAppc                 ó^   • [         (       a  [         R                  S   $ [        R                  $ )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``.
zwsgi.errors)r   ÚenvironÚsysÚstderr© ó    ÚP/srv/projetos/modelo_ml_acdoc/venv/lib/python3.13/site-packages/flask/logging.pyÚwsgi_errors_streamr      s"   € ÷ ‚wÜ�‰˜}Ñ-Ð-ä�:‰:Ðr   c                óÒ   ^• U R                  5       mU nU(       aM  [        U4S jUR                   5       5      (       a  gUR                  (       d   gUR                  nU(       a  MM  g)z’Check if there is a handler in the logging chain that will handle the
given logger's :meth:`effective level <~logging.Logger.getEffectiveLevel>`.
c              3  ó@   >#   • U  H  oR                   T:*  v •  M     g 7f)N)Úlevel)Ú.0Úhandlerr   s     €r   Ú	<genexpr>Ú$has_level_handler.<locals>.<genexpr>'   s   øé € ÐFÒ5E¨'�}‰} Ö%Ò5Eùs   ƒTF)ÚgetEffectiveLevelÚanyÚhandlersÚ	propagateÚparent)ÚloggerÚcurrentr   s     @r   Úhas_level_handlerr      s]   ø€ ð ×$Ñ$Ó&€EØ€Gæ
ÜÔF°W×5EÒ5EÓF×FÑFØà× × Øð ð —.‘.ˆ÷ ˆ'ð r   z6[%(asctime)s] %(levelname)s in %(module)s: %(message)sc                ó  • [         R                  " U R                  5      nU R                  (       a0  UR                  (       d  UR                  [         R                  5        [        U5      (       d  UR                  [        5        U$ )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)Úappr   s     r   Úcreate_loggerr)   :   sS   € ô ×Ò˜sŸx™xÓ(€Fà
‡y‡y˜ŸŸØ�‰œŸ™Ô&ä˜V×$Ñ$Ø×Ñœ/Ô*à€Mr   )Úreturnzt.TextIO)r   úlogging.Loggerr*   Úbool)r(   r   r*   r+   )Ú
__future__r   r    r
   ÚtypingÚtÚwerkzeug.localr   Úglobalsr   ÚTYPE_CHECKINGÚ
sansio.appr   r   r   ÚStreamHandlerr'   ÚsetFormatterÚ	Formatterr)   r   r   r   Ú<module>r7      so   ðÝ "ã Û 
Û å %å à‡?‡?Ýð óó ðôð* ×'Ò'Ð(:Ó;€Ø × Ñ Ø×ÒÐNÓOôõ
r   