4083cddb49ad60cbdb70fd3e2e1cabb4bcb08c45,slm_lab/lib/logger.py,,,#,10
Before Change
sh = logging.StreamHandler(sys.stdout)
sh.setFormatter(color_formatter)
lab_logger = logging.getLogger()
lab_logger.setLevel(logging.INFO)
lab_logger.addHandler(sh)
lab_logger.propagate = False
After Change
import warnings
// extra debugging level deeper than the default debug
NEW_LVLS = {"DEBUG2": 9, "DEBUG3": 8}
for name, val in NEW_LVLS.items():
logging.addLevelName(val, name)
setattr(logging, name, val)
LOG_FORMAT = "[%(asctime)s %(levelname)s] %(message)s"
color_formatter = colorlog.ColoredFormatter(
"%(log_color)s[%(asctime)s %(levelname)s]%(reset)s %(message)s")
sh = logging.StreamHandler(sys.stdout)
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 4
Instances
Project Name: kengz/SLM-Lab
Commit Name: 4083cddb49ad60cbdb70fd3e2e1cabb4bcb08c45
Time: 2018-02-02
Author: kengzwl@gmail.com
File Name: slm_lab/lib/logger.py
Class Name:
Method Name:
Project Name: CyberReboot/poseidon
Commit Name: 75359bcd4c3054ca88aefe62a1edfbbacdf9a0e2
Time: 2016-08-10
Author: tlanham@cs.stanford.edu
File Name: poseidon/poseidonMain/Investigator/Investigator.py
Class Name: Investigator
Method Name: __init__
Project Name: bethgelab/foolbox
Commit Name: 828e29ecbd83ea60102d0f7295330b4c2cb6e308
Time: 2020-01-25
Author: git@jonasrauber.de
File Name: tests/conftest.py
Class Name:
Method Name: