Current Path : /usr/lib/python2.7/dist-packages/landscape/ |
Current File : //usr/lib/python2.7/dist-packages/landscape/deployment.pyc |
Tc @ s d d l Z d d l Z d d l m Z m Z d d l m Z m Z m Z m Z m Z d d l m Z m Z d d l m Z d d l m Z d d l m Z d Z d e f d YZ d e f d YZ d e f d YZ d Z d S( iN( t ConfigObjt ConfigObjError( t getLevelNamet getLoggert FileHandlert StreamHandlert Formatter( t OptionParsert SUPPRESS_HELP( t VERSION( t Persist( t UPGRADE_MANAGERSc C s g } t j j | j s. t j | j n t j j | j | d } | j t | | j s | j t t j n t j t | j j x7 | D]/ } t j | d } | j t | q Wd S( s, Given a basic configuration, set up logging.s .logs; %(asctime)s %(levelname)-8s [%(threadName)-10s] %(message)sN( t ost patht existst log_dirt makedirst joint appendR t quietR t syst stdoutR t setLevelR t log_levelt uppert addHandlert setFormatterR ( t configurationt program_namet handlerst log_filenamet handlert format( ( s8 /usr/lib/python2.7/dist-packages/landscape/deployment.pyt init_logging s t ConfigSpecOptionParserc B s# e Z i Z d d Z d Z RS( c C s t j | | d S( N( R t __init__( t selft unsaved_options( ( s8 /usr/lib/python2.7/dist-packages/landscape/deployment.pyR# &