Adding initial files

This commit is contained in:
2021-12-20 21:06:31 +00:00
committed by root
parent d00ee614d6
commit 3d93bfa7df
7 changed files with 113 additions and 0 deletions

12
Logger.py Normal file
View File

@ -0,0 +1,12 @@
import yaml
import logging
import logging.config
import logging.handlers
def load_logger():
with open('Python loggers.yaml') as cfg:
config = yaml.safe_load(cfg)
logging.config.dictConfig(config)
return logging.getLogger('Certbot-Gandi-Authenticator')