File manager - Edit - /opt/imh-python/lib/python2.7/site-packages/flask/logging.pyo
Back
� 钹Qc @@ sK d Z d d l m Z d d l m Z m Z m Z m Z m Z d � Z d S( s� flask.logging ~~~~~~~~~~~~~ Implements the logging support for Flask. :copyright: (c) 2011 by Armin Ronacher. :license: BSD, see LICENSE for more details. i ( t absolute_import( t getLoggert StreamHandlert Formattert getLoggerClasst DEBUGc @ s� t � � d � f � � f d � � Y} d t f � f d � � Y} | � } | j t � | j t � j � � t � j � } | j 2| | _ | j | � | S( s8 Creates a logger for the given application. This logger works similar to a regular Python logger but changes the effective logging level based on the application's debug flag. Furthermore this function also removes all attached handlers in case there was a logger with the log name before. t DebugLoggerc @ s e Z � � f d � Z RS( c @ s) | j d k r � j r t S� j | � S( Ni ( t levelt debugR t getEffectiveLevel( t x( t Loggert app( s<