%PDF- %PDF-
Direktori : /lib64/python2.7/site-packages/tornado/ |
Current File : //lib64/python2.7/site-packages/tornado/log.pyc |
� ��L]c @� s d Z d d l m Z m Z m Z m Z d d l Z d d l Z d d l Z d d l m Z d d l m Z m Z y d d l Z Wn e k r� d Z n Xe j d � Z e j d � Z e j d � Z d � Z d � Z d e j f d � � YZ d d d � Z d d � Z d S( sH Logging support for Tornado. Tornado uses three logger streams: * ``tornado.access``: Per-request logging for Tornado's HTTP servers (and potentially other servers in the future) * ``tornado.application``: Logging of errors from application code (i.e. uncaught exceptions from callbacks) * ``tornado.general``: General-purpose logging, including any errors or warnings from Tornado itself. These streams may be configured independently using the standard library's `logging` module. For example, you may wish to send ``tornado.access`` logs to a separate file for analysis. i ( t absolute_importt divisiont print_functiont with_statementN( t _unicode( t unicode_typet basestring_types tornado.accesss tornado.applications tornado.generalc C� st t } t rp t t j d � rp t j j � rp y, t j � t j d � d k rX t } n Wqp t k rl qp Xn | S( Nt isattyt colorsi ( t Falset cursest hasattrt syst stderrR t setuptermt tigetnumt Truet Exception( t color( ( s1 /usr/lib64/python2.7/site-packages/tornado/log.pyt _stderr_supports_color2 s ' c C� s- y t | � SWn t k r( t | � SXd S( N( R t UnicodeDecodeErrort repr( t s( ( s1 /usr/lib64/python2.7/site-packages/tornado/log.pyt _safe_unicode>