Ñò §ÚêLc @ sJ 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 d „ Z d „ Z 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-2008 Vinay Sajip. All Rights Reserved. To use, simply 'import logging' and log away! iÿÿÿÿN( t ThreadingTCPServert StreamRequestHandleriF# t win32iF' ih i c C s¸ d d k } | i | ƒ } t | d ƒ o! t | d ƒ o | i | ƒ n | i | ƒ t | ƒ } t i ƒ z7 t i i ƒ t i 2t | | ƒ } 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 readline( t ConfigParsert hasattrR t readt _create_formatterst loggingt _acquireLockt _handlerst cleart _handlerListt _install_handlerst _install_loggerst _releaseLock( t fnamet defaultst disable_existing_loggersR t cpt formatterst handlers( ( s&