diff options
Diffstat (limited to 'tutorials/ApacheCNF/automation/onap_settings.py')
-rw-r--r-- | tutorials/ApacheCNF/automation/onap_settings.py | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/tutorials/ApacheCNF/automation/onap_settings.py b/tutorials/ApacheCNF/automation/onap_settings.py index e0bad35d..414685e0 100644 --- a/tutorials/ApacheCNF/automation/onap_settings.py +++ b/tutorials/ApacheCNF/automation/onap_settings.py @@ -24,6 +24,39 @@ # ONAP SERVICES URLS # # # ###################### +import logging.config + +LOG_CONFIG = { + "version": 1, + "disable_existing_loggers": False, + "formatters": { + "default": { + "class": "logging.Formatter", + "format": "%(asctime)s %(levelname)s %(lineno)d:%(filename)s(%(process)d) - %(message)s" + } + }, + "handlers": { + "console": { + "level": "DEBUG", + "class": "logging.StreamHandler", + "formatter": "default" + }, + "file": { + "level": "DEBUG", + "class": "logging.FileHandler", + "formatter": "default", + "filename": "/tmp/pythonsdk.debug.log", + "mode": "w" + } + }, + "root": { + "level": "DEBUG", + "handlers": ["console", "file"] + } +} + +logging.config.dictConfig(LOG_CONFIG) + AAI_URL = "https://aai.api.sparky.simpledemo.onap.org:30233" AAI_API_VERSION = "v23" |