raw
9982-getdata            1 import logging
9982-getdata 2 import os
9982-getdata 3 import sys
9982-getdata 4
9982-getdata 5
9982-getdata 6 def setup():
9982-getdata 7 log_format = "%(levelname)s %(asctime)s: %(message)s"
9982-getdata 8 logging.basicConfig(level=os.environ.get("LOGLEVEL", "INFO"), format=log_format, stream=sys.stdout)