Current Path : /usr/local/lib/python2.5/logging/ |
FreeBSD hs32.drive.ne.jp 9.1-RELEASE FreeBSD 9.1-RELEASE #1: Wed Jan 14 12:18:08 JST 2015 root@hs32.drive.ne.jp:/sys/amd64/compile/hs32 amd64 |
Current File : //usr/local/lib/python2.5/logging/config.pyc |
³ò h”Rc @ 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 ƒ z4 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 defaultsR t cpt formatterst handlers( ( s* /usr/local/lib/python2.5/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( ( s* /usr/local/lib/python2.5/logging/config.pyt _resolveZ s c C s* | i d d ƒ } t | ƒ p h Sn t i | d ƒ } h } xä | D]Ü } d t i | ƒ } | 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 | ƒ } q n | | | ƒ } | | | <qF W| S( s Create and return formattersR t keyst ,s formatter_%st formati t datefmtt classN( t gett lenR R t stript optionst NoneR t FormatterR"