+
    NjI	                       ^ RI Ht ^ RIt^ RIt^ RIt^ RIHt ^RIH	t	 ]P                  '       d   ^RIHt ]R R l4       tR R	 lt]P                  ! ]4      t]P#                  ]P$                  ! R
4      4       R R ltR# )    )annotationsN)
LocalProxy)request)Appc                   V ^8  d   QhRR/# )   returnzt.TextIO )formats   "O/data/cameron/venvs/serve_omidlab/lib/python3.14/site-packages/flask/logging.py__annotate__r      s      H     c                 h    \         '       d   \         P                  R,          # \        P                  # )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stderrr
   r   r   wsgi_errors_streamr      s"     w}--::r   c                    V ^8  d   QhRRRR/# )r   loggerlogging.Loggerr	   boolr
   )r   s   "r   r   r      s      n  r   c                .  a V P                  4       oT pV'       dz   \        ;QJ d)    V3R lVP                   4       F  '       g   K   RM	  RM! V3R lVP                   4       4      '       d   R# VP                  '       g    R# VP                  pK  R# )zCheck if there is a handler in the logging chain that will handle the
given logger's :meth:`effective level <~logging.Logger.getEffectiveLevel>`.
c              3  @   <"   T F  qP                   S8*  x  K  	  R # 5i)N)level).0handlerr   s   & r   	<genexpr>$has_level_handler.<locals>.<genexpr>'   s     F5E'}}%5Es   TF)getEffectiveLevelanyhandlers	propagateparent)r   currentr   s   & @r   has_level_handlerr%      sm     $$&EG
3FW5E5EF333FW5E5EFFF     ..r   z6[%(asctime)s] %(levelname)s in %(module)s: %(message)sc                    V ^8  d   QhRRRR/# )r   appr   r	   r   r
   )r   s   "r   r   r   :   s      s ~ r   c                   \         P                  ! V P                  4      pV P                  '       d2   VP                  '       g    VP                  \         P                  4       \        V4      '       g   VP                  \        4       V# )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'   r   s   & r   create_loggerr1   :   sW     sxx(F
yyy&V$$/*Mr   )
__future__r   r)   r   typingtwerkzeug.localr   globalsr   TYPE_CHECKING
sansio.appr   r   r%   StreamHandlerr0   setFormatter	Formatterr1   r
   r   r   <module>r<      sq    "  
  % ???  * ''(:;   NO
r   