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

Function get_root_logger

util.py:21–31  ·  view source on GitHub ↗
(file=True)

Source from the content-addressed store, hash-verified

19
20
21def get_root_logger(file=True):
22 logger = logging.getLogger("")
23 logger.setLevel(logging.INFO)
24 format = logging.Formatter("%(asctime)-10s %(message)s", "%H:%M:%S")
25
26 if file:
27 handler = logging.FileHandler("log.txt")
28 handler.setFormatter(format)
29 logger.addHandler(handler)
30
31 return logger
32
33
34def create_working_directory(cfg):

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected