new-openstackcheck-mk2/myOpenstackApp/logger.py

6 lines
193 B
Python
Raw Normal View History

2022-11-20 10:57:48 +00:00
import os,logging
##LOGGING OPTIONS
LOG_LEVEL = os.getenv("LOG_LEVEL") or "DEBUG"
FORMAT = '%(asctime)s [%(levelname)s] %(message)s'
log = logging
log.basicConfig(format=FORMAT,level=LOG_LEVEL)