Files
old-parkingkoncept/parkingkonceptvenv/lib/python3.7/site-packages/flask/__pycache__/logging.cpython-37.pyc

51 lines
3.0 KiB
Plaintext
Raw Normal View History

2019-11-17 12:44:16 +01:00
B
<00>/<2F>]<5D> <00>@s<>dZddlmZddlZddlZddlZddlmZddlm Z edd<08><00>Z
d d
<EFBFBD>Z e<03> e
<EFBFBD>Z e <0A>e<03>d <0B><01>d d <0A>Zdd<0F>ZdS)zN
flask.logging
~~~~~~~~~~~~~
:copyright: 2010 Pallets
:license: BSD-3-Clause
<EFBFBD>)<01>absolute_importN)<01>
LocalProxy<EFBFBD>)<01>requestcCstrtjdStjS)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>r r <00>0/tmp/pip-install-c3kgu56x/Flask/flask/logging.py<70>wsgi_errors_streams
r csD|<00><00><00>|}x2|r>t<01>fdd<02>|jD<00><01>r.dS|js6P|j}qWdS)z<>Check if there is a handler in the logging chain that will handle the
given logger's :meth:`effective level <~logging.Logger.getEffectiveLevel>`.
c3s|]}|j<00>kVqdS)N)<01>level)<02>.0<EFBFBD>handler)r r r
<00> <genexpr>)sz$has_level_handler.<locals>.<genexpr>TF)<05>getEffectiveLevel<65>any<6E>handlers<72> propagate<74>parent)<02>logger<65>currentr )r r
<00>has_level_handler!s
rz6[%(asctime)s] %(levelname)s in %(module)s: %(message)scCs |jtjkp|jp|jp|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)rr r r
<00> _has_config<s rcCszt<00>|j<02>}x>dD]6}t<00>|<02>}t|<03>rt|<01>st<04>dj|j|d<03><02>PqW|jrd|jsd|<01> tj
<EFBFBD>t |<01>sv|<01> t <0A>|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.appZflaskz<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> getLoggerrr<00>warnings<67>warn<72>format<61>debugr <00>setLevel<65>DEBUGr<00>
addHandler<EFBFBD>default_handler)ZapprrZ
old_loggerr r r
<00> create_loggerJs 

  
r')<12>__doc__<5F>
__future__rrrrZwerkzeug.localr<00>globalsrr r<00> StreamHandlerr&<00> setFormatter<65> Formatterrr'r r r r
<00><module>s