Files
proxmox/venv/lib/python3.12/site-packages/flask/__pycache__/logging.cpython-312.pyc

33 lines
3.2 KiB
Plaintext
Raw Normal View History

<EFBFBD>
<0E>HiI <00><01><><00>ddlmZddlZddlZddlZddlmZddlm Z ejrddl m Z ed d<07><04>Z d d<08>Zeje <0A>Zej#ej$d <09><00>d d
<EFBFBD>Zy)<0E>)<01> annotationsN)<01>
LocalProxy<EFBFBD>)<01>request)<01>Appc<01>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>O/home/intlc/projects/proxmox/venv/lib/python3.12/site-packages/flask/logging.py<70>wsgi_errors_streamrs <00><00><0F><16><EFBFBD><EFBFBD>}<7D>-<2D>-<2D> <0E>:<3A>:<3A>r c<01><><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<01><<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<>'<27>w<EFBFBD>}<7D>}<7D><05>%<25>F<>s<00>TF)<05>getEffectiveLevel<65>any<6E>handlers<72> propagate<74>parent)<03>logger<65>currentrs @r<00>has_level_handlerrsX<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<01><><00>tj|j<00>}|jr+|js|j tj <00>t|<01>s|jt<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)<02>apprs r<00> create_loggerr(:sP<00><00><15> <1E> <1E>s<EFBFBD>x<EFBFBD>x<EFBFBD> (<28>F<EFBFBD>
<EFBFBD>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 )<02>returnzt.TextIO)r<00>logging.Loggerr)<00>bool)r'rr)r*)<14>
__future__rrr
<00>typing<6E>t<>werkzeug.localr<00>globalsr<00> TYPE_CHECKING<4E>
sansio.apprrr<00> StreamHandlerr&<00> setFormatter<65> Formatterr(r r r<00><module>r6ss<00><01>"<22><0E>
<EFBFBD><12>%<25><1C><04>?<3F>?<3F><1F> <0C> <16> <0C> <16><11>*(<28>'<27>'<27>'<27>(:<3A>;<3B><0F><0F><1C><1C><15>G<EFBFBD><15><15>N<>O<><02>
r