Files
order/.venv/Lib/site-packages/flask/__pycache__/logging.cpython-312.pyc

45 lines
4.2 KiB
Plaintext
Raw Normal View History

2025-08-27 21:11:48 +08:00
<EFBFBD>
x<>g<EFBFBD> <00><00><><00>dZddlmZddlZddlZddlZddlmZddlm Z ed<07><00>Z
d<08>Z eje
<EFBFBD>Z e jejd <09><00>d
<EFBFBD>Zd <0B>Zy) zN
flask.logging
~~~~~~~~~~~~~
:copyright: 2010 Pallets
:license: BSD-3-Clause
<EFBFBD>)<01>absolute_importN)<01>
LocalProxy<EFBFBD>)<01>requestc<00>T<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>6D:\mooc\order\.venv\Lib\site-packages\flask/logging.py<70>wsgi_errors_streamrs<00><00>.5<EFBFBD>7<EFBFBD>?<3F>?<3F>=<3D> )<29>D<>#<23>*<2A>*<2A>Dr c<00><><00><02>|j<00><00>|}|r<t<00>fd<01>|jD<00><00>ry|js y|j}|r<01><y)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<00><<00>K<00>|]}|j<00>k<00><01><00>y<00>w)N)<01>level)<03>.0<EFBFBD>handlerrs <20>r <00> <genexpr>z$has_level_handler.<locals>.<genexpr>)s<00><><00><><00>F<>5E<35>'<27>w<EFBFBD>}<7D>}<7D><05>%<25>5E<35>s<00>TF)<05>getEffectiveLevel<65>any<6E>handlers<72> propagate<74>parent)<03>logger<65>currentrs @r <00>has_level_handlerr!sX<00><><00> <13> $<24> $<24> &<26>E<EFBFBD><14>G<EFBFBD>
<11> <0E>F<>W<EFBFBD>5E<35>5E<35>F<> F<><17><16> <20> <20> <11> <11><1A>.<2E>.<2E><07> <12> r z6[%(asctime)s] %(levelname)s in %(module)s: %(message)sc<00><><00>|jtjk7xs)|jxs|jxs |j
S)z<>Decide if a logger has direct configuration applied by checking
its properties against the defaults.
:param logger: The :class:`~logging.Logger` to inspect.
)r<00>logging<6E>NOTSETr<00>filtersr)rs r <00> _has_configr!<sD<00><00> <0F> <0C> <0C><07><0E><0E>&<26> <20> <11>?<3F>?<3F> <20> <11>><3E>><3E> <20><16><1F><1F> <1F> r c<00><><00>tj|j<00>}dD]`}tj|<02>}t|<03>s<01>$t|<01>r<01>0t j
dj |j|<02><03><00>n|jr+|js|jtj<00>t|<01>s|jt<00>|S)a<>Get the the Flask apps'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.
)z flask.app<70>flaskz<6B>'app.logger' is named '{name}' for this application, but configuration was found for '{old_name}', which no longer has an effect. The logging configuration should be moved to '{name}'.)<02>name<6D>old_name)r<00> getLoggerr$r!<00>warnings<67>warn<72>format<61>debugr<00>setLevel<65>DEBUGr<00>
addHandler<EFBFBD>default_handler)<04>apprr%<00>
old_loggers r <00> create_loggerr1Js<><00><00><15> <1E> <1E>s<EFBFBD>x<EFBFBD>x<EFBFBD> (<28>F<EFBFBD>+<2B><08><1C>&<26>&<26>x<EFBFBD>0<>
<EFBFBD> <16>z<EFBFBD> "<22>;<3B>v<EFBFBD>+><3E> <14>M<EFBFBD>M<EFBFBD>0<>17<31><06>C<EFBFBD>H<EFBFBD>H<EFBFBD>x<EFBFBD><06>0X<30>  <0E> <12>+<2B> <0B>y<EFBFBD>y<EFBFBD><16><1C><1C><0E><0F><0F><07> <0A> <0A>&<26> <1C>V<EFBFBD> $<24><0E><19><19>/<2F>*<2A> <11>Mr )<12>__doc__<5F>
__future__rrr r'<00>werkzeug.localr<00>globalsrrr<00> StreamHandlerr.<00> setFormatter<65> Formatterr!r1r r r <00><module>r9sw<00><01><04>'<27><0E>
<EFBFBD><0F>%<25><1C> <0C> E<01> <0C> E<01><11>*(<28>'<27>'<27>'<27>(:<3A>;<3B><0F><0F><1C><1C><15>G<EFBFBD><15><15>N<>O<><02>
<06>#r