a „oe×ã@sHddlZddlZddlZddlZddlmZdd„Zdd„Zdd „Z dS) éNé)ÚmonkeycCs |jtjkS)N)ZlevelnoÚloggingÚWARNING)Úrecord©rú3C:\Program Files\Certbot\pkgs\setuptools\logging.pyÚ _not_warningsr cCsrt ¡}| tj¡t tj¡}| t¡||f}tjdd|tj dt   t j j¡rnt tt jd¡t jt j _dS)zÇ Configure logging to emit warning and above to stderr and everything else to stdout. This behavior is provided for compatibility with distutils.log but may change in the future. z {message}Ú{)ÚformatZstyleÚhandlersÚlevelÚ set_thresholdN)rZ StreamHandlerÚsetLevelrÚsysÚstdoutZ addFilterr Z basicConfigÚDEBUGÚinspectZismoduleÚ distutilsZdistÚlogrZ patch_funcr)Z err_handlerZ out_handlerr rrrÚ configure s    ÿrcCstj |d¡t |¡S)Né )rÚrootrrZ unpatched)r rrrr$sr) rrrZ distutils.logrÚrr rrrrrrÚs