Adding initial files
This commit is contained in:
12
Logger.py
Normal file
12
Logger.py
Normal 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')
|
||||
|
Reference in New Issue
Block a user