d6f1dc03a8f843040d1dfebc854331e674a30b1a
[nepi.git] / src / neco / __init__.py
1 import logging
2 import os
3
4 LOGLEVEL = os.environ.get("NEPI_LOGLEVEL", "DEBUG").upper()
5 LOGLEVEL = getattr(logging, LOGLEVEL)
6 FORMAT = "%(asctime)s %(name)-12s %(levelname)-8s %(message)s"
7 logging.basicConfig(format = FORMAT, level = LOGLEVEL)
8