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

Function get_root_logger

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

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected