Ñò
‚Ic @ s5 d Z d d k Z d d k Z d d k Z d d k Z d d k Z d d k Z d d k Z d d k Z d d k Z y d d k
Z
d d k Z Wn e j
o
d Z
n Xd d k l Z l Z d Z e i d j o
d Z n d Z d a d d „ Z d „ Z d
„ Z d „ Z d „ Z e d
„ Z d „ Z d S( sž
Configuration functions for the logging package for Python. The core package
is based on PEP 282 and comments thereto in comp.lang.python, and influenced
by Apache's log4j system.
Should work under Python versions >= 1.5.2, except that source line
information is not available unless 'sys._getframe()' is.
Copyright (C) 2001-2004 Vinay Sajip. All Rights Reserved.
To use, simply 'import logging' and log away!
iÿÿÿÿN( t ThreadingTCPServert StreamRequestHandleriF# t win32iF' ih c C sÉ d d k } | i | ƒ } t | d ƒ o! t | d ƒ o | i | ƒ n | i | ƒ t | ƒ } t i ƒ zH t i i ƒ t t d ƒ o t i 2n t
| | ƒ } t | | ƒ Wd t i ƒ Xd S( s5
Read the logging configuration from a ConfigParser-format file.
This can be called several times from an application, allowing an end user
the ability to select from various pre-canned configurations (if the
developer provides a mechanism to present the choices and load the chosen
configuration).
In versions of ConfigParser which have the readfp method [typically
shipped in 2.x versions of Python], you can pass in a file-like object
rather than a filename, in which case the file-like object will be read
using readfp.
iÿÿÿÿNt readfpt readlinet _handlerList(
t ConfigParsert hasattrR t readt _create_formatterst loggingt _acquireLockt _handlerst clearR t _install_handlerst _install_loggerst _releaseLock( t fnamet defaultsR t cpt
formatterst handlers( ( sD /usr/lib/python2.6/site-packages/paste/script/util/logging_config.pyt
fileConfig7 s
c C s’ t i | d ƒ } | i d ƒ } t | ƒ } x^ | D]V } | d | } y t | | ƒ } Wq4 t j
o t | ƒ t | | ƒ } q4 Xq4 W| S( s) Resolve a dotted name to a global object.t .i ( t stringt splitt popt
__import__t getattrt AttributeError( t namet usedt foundt n( ( sD /usr/lib/python2.6/site-packages/paste/script/util/logging_config.pyt _resolve[ s
c C s- | i d d ƒ } t | ƒ p h St i | d ƒ } h } xê | D]â } t i | ƒ } d | } | i | ƒ } d | j o | i | d d ƒ } n d } d | j o | i | d d ƒ } n d } t i } d | j o- | i | d ƒ } | o t | ƒ } qn | | | ƒ }
|
| |