MCPcopy Create free account
hub / github.com/OpenBMB/ChatDev / _should_log

Method _should_log

utils/structured_logger.py:64–66  ·  view source on GitHub ↗

Check if a log level should be logged based on configured level.

(self, level: LogLevel)

Source from the content-addressed store, hash-verified

62 return level_map.get(log_level, logging.INFO)
63
64 def _should_log(self, level: LogLevel) -> bool:
65 """Check if a log level should be logged based on configured level."""
66 return level >= self.log_level
67
68 def _format_log(self, log_type: LogType, level: LogLevel, message: str,
69 correlation_id: str = None, **kwargs) -> str:

Callers 1

_logMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected