logging_config = { 'version': 1, 'disable_existing_loggers': False, "loggers": { '': { # root logger 'handlers': ['console', 'file'], 'level': 'INFO', 'propagate': True }, 'alembic.runtime.migration': { 'handlers': ['console', 'file'], 'level': 'ERROR', 'propagate': False }, 'urllib3.connectionpool': { 'handlers': ['console', 'file'], 'level': 'ERROR', 'propagate': False }, }, "formatters": { "simple": { "format": "%(asctime)s - %(name)s - %(levelname)s - %(message)s" } }, "root": { "level": "INFO", "handlers": [ "console", "file", ] }, "handlers": { "console": { "formatter": "simple", "class": "logging.StreamHandler", "stream": "ext://sys.stdout", "level": "DEBUG" }, "file": { "level": "INFO", "formatter": "simple", "class": "logging.FileHandler", "filename": "cr_connect.log" } } }