Files
loustique-home/venv/lib/python3.11/site-packages/flask/__pycache__/logging.cpython-311.pyc

35 lines
3.4 KiB
Plaintext
Raw Normal View History

2026-03-21 10:53:02 +01:00
<EFBFBD>
<00><><EFBFBD>iI <00><01><><00>ddlmZddlZddlZddlZddlmZddlm Z ej
rddl m Z edd <09><04><00>Z dd <0A>Zeje <0A><00>Ze<10>ejd<0E><00><00><00>dd<11>ZdS)<15>)<01> annotationsN)<01>
LocalProxy<EFBFBD>)<01>request)<01>App<70>return<72>t.TextIOc<01>L<00>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``.
z wsgi.errors)r<00>environ<6F>sys<79>stderr<72><00><00>Y/home/maxime/Documents/loustiques-home/venv/lib/python3.11/site-packages/flask/logging.py<70>wsgi_errors_streamrs!<00><00><0F>.<2E><16><EFBFBD>}<7D>-<2D>-<2D> <0E>:<3A>r<00>logger<65>logging.Logger<65>boolc<01><><00><02>|<00><00><00><00>|}|r3t<00>fd<01>|jD<00><00><00><00>rdS|jsn |j}|<01>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<01>.<00>K<00>|]}|j<00>kV<00><00>dS)N)<01>level)<03>.0<EFBFBD>handlerrs <20>r<00> <genexpr>z$has_level_handler.<locals>.<genexpr>'s*<00><><00><00><00>F<>F<>'<27>w<EFBFBD>}<7D><05>%<25>F<>F<>F<>F<>F<>FrTF)<05>getEffectiveLevel<65>any<6E>handlers<72> propagate<74>parent)r<00>currentrs @r<00>has_level_handlerr!sv<00><><00> <13> $<24> $<24> &<26> &<26>E<EFBFBD><14>G<EFBFBD>
<11>!<21> <0E>F<>F<>F<>F<>W<EFBFBD>5E<35>F<>F<>F<> F<> F<> <18><17>4<EFBFBD><16> <20> <12> <11><19>.<2E><07> <12>!<21> <11>5rz6[%(asctime)s] %(levelname)s in %(module)s: %(message)s<>apprc<01><><00>tj|j<00><00>}|jr&|js|<01>tj<00><00>t|<01><00>s|<01>t<00><00>|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.
)
<EFBFBD>logging<6E> getLogger<65>name<6D>debugr<00>setLevel<65>DEBUGr!<00>
addHandler<EFBFBD>default_handler)r"rs r<00> create_loggerr,:sf<00><00><15> <1E>s<EFBFBD>x<EFBFBD> (<28> (<28>F<EFBFBD>
<EFBFBD>y<EFBFBD>'<27><16><1C>'<27><0E><0F><0F><07> <0A>&<26>&<26>&<26> <1C>V<EFBFBD> $<24> $<24>+<2B><0E><19><19>/<2F>*<2A>*<2A>*<2A> <11>Mr)rr )rrrr)r"rrr)<14>
__future__rr$r <00>typing<6E>t<>werkzeug.localr<00>globalsr<00> TYPE_CHECKING<4E>
sansio.apprrr!<00> StreamHandlerr+<00> setFormatter<65> Formatterr,rrr<00><module>r7s<00><01>"<22>"<22>"<22>"<22>"<22>"<22><0E><0E><0E><0E>
<EFBFBD>
<EFBFBD>
<EFBFBD>
<EFBFBD><12><12><12><12>%<25>%<25>%<25>%<25>%<25>%<25><1C><1C><1C><1C><1C><1C><04>?<3F> <20><1F><1F><1F><1F><1F><1F> <0C> <16> <16> <16> <0C><1A> <16><11><11><11><11>*(<28>'<27>'<27>(:<3A>;<3B>;<3B><0F><0F><1C><1C><15>G<EFBFBD><15>N<>O<>O<><02><02><02>
<12><12><12><12><12>r