MCPcopy Create free account
hub / github.com/DeepGraphLearning/DiffPack / get_root_logger

Function get_root_logger

diffpack/util.py:44–54  ·  view source on GitHub ↗
(file=True)

Source from the content-addressed store, hash-verified

42
43
44def get_root_logger(file=True):
45 logger = logging.getLogger("")
46 logger.setLevel(logging.INFO)
47 format = logging.Formatter("%(asctime)-10s %(message)s", "%H:%M:%S")
48
49 if file:
50 handler = logging.FileHandler("log.txt")
51 handler.setFormatter(format)
52 logger.addHandler(handler)
53
54 return logger
55
56
57def create_working_directory(cfg):

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected