Commit 48311041 authored by MischaD's avatar MischaD
Browse files

Utils

parent 1f003a0b
import logging
logger = logging.getLogger("LBMweights")
logger.setLevel(logging.WARNING)
# fh = logging.FileHandler('mylbm.log')
# fh.setLevel(logging.DEBUG)
ch = logging.StreamHandler()
ch.setLevel(logging.DEBUG)
# logger.addHandler(fh)
logger.addHandler(ch)
formatter = logging.Formatter("%(asctime)s - %(levelname)s - %(message)s")
ch.setFormatter(formatter)
# fh.setFormatter(formatter)
logger = logging.getLogger("LBMweights")
log_levels = dict(debug=logging.DEBUG, info=logging.INFO, warning=logging.WARNING)
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment