MCPcopy Create free account
hub / github.com/FoundationVision/ByteTrack / redirect_sys_output

Function redirect_sys_output

yolox/utils/logger.py:58–61  ·  view source on GitHub ↗
(log_level="INFO")

Source from the content-addressed store, hash-verified

56
57
58def redirect_sys_output(log_level="INFO"):
59 redirect_logger = StreamToLoguru(log_level)
60 sys.stderr = redirect_logger
61 sys.stdout = redirect_logger
62
63
64def setup_logger(save_dir, distributed_rank=0, filename="log.txt", mode="a"):

Callers 1

setup_loggerFunction · 0.85

Calls 1

StreamToLoguruClass · 0.85

Tested by

no test coverage detected