MCPcopy Index your code
hub / github.com/CodeClash-ai/CodeClash / add_root_file_handler

Function add_root_file_handler

codeclash/utils/log.py:89–95  ·  view source on GitHub ↗

Add a file handler to the root logger to capture all log messages. Returns: The FileHandler that was added (for later cleanup).

(log_path: Path)

Source from the content-addressed store, hash-verified

87
88
89def add_root_file_handler(log_path: Path) -> logging.FileHandler:
90 """Add a file handler to the root logger to capture all log messages.
91
92 Returns:
93 The FileHandler that was added (for later cleanup).
94 """
95 return add_file_handler(logging.getLogger(), log_path)
96
97
98def remove_file_handler(logger: logging.Logger, handler: logging.FileHandler) -> None:

Callers 2

__init__Method · 0.90
__init__Method · 0.90

Calls 1

add_file_handlerFunction · 0.85

Tested by

no test coverage detected