File: //lib64/python3.8/logging/__pycache__/config.cpython-38.pyc
U
e5dŽ ã @ sN d Z ddlZddlZddlZddlZddlZddlZddlZddlZddl Z ddl
mZmZ dZ
ejZdad+dd„Zdd „ Zd
d„ Zdd
„ Zdd„ Zdd„ Zdd„ Zdd„ Ze dej¡Zdd„ ZG dd„ deƒZG dd„ deeƒZ G dd„ de!eƒZ"G dd „ d e#eƒZ$G d!d"„ d"eƒZ%G d#d$„ d$e%ƒZ&e&Z'd%d&„ Z(e
dfd'd(„Z)d)d*„ Z*dS ),a
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.
Copyright (C) 2001-2019 Vinay Sajip. All Rights Reserved.
To use, simply 'import logging' and log away!
é N)ÚThreadingTCPServerÚStreamRequestHandleriF# Tc C s„ ddl }t| |jƒr| }n*| |¡}t| dƒr:| | ¡ n
| | ¡ t|ƒ}t ¡ z tƒ t||ƒ}t
|||ƒ W 5 t
¡ X dS )aD
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).
r NÚreadline)ÚconfigparserÚ
isinstanceZRawConfigParserZConfigParserÚhasattrZ read_fileÚreadÚ_create_formattersÚloggingÚ_acquireLockÚ_releaseLockÚ_clearExistingHandlersÚ_install_handlersÚ_install_loggers)ZfnameÚdefaultsÚdisable_existing_loggersr ÚcpÚ
formattersÚhandlers© r ú&/usr/lib64/python3.8/logging/config.pyÚ
fileConfig3 s
r c C sl | d¡} | d¡}t|ƒ}| D ]F}|d | }zt||ƒ}W q tk
rd t|ƒ t||ƒ}Y q X q |S )z)Resolve a dotted name to a global object.Ú.r )ÚsplitÚpopÚ
__import__ÚgetattrÚAttributeError)ÚnameÚusedÚfoundÚnr r r Ú_resolveU s
r"