13 lines
283 B
Python
13 lines
283 B
Python
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')
|
|
|