new-openstackcheck/ng_openstack/logger.py

6 lines
193 B
Python
Raw Normal View History

2022-11-02 05:30:36 +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)