MCPcopy Index your code
hub / github.com/OpenBMB/ChatDev / _log

Method _log

utils/structured_logger.py:82–88  ·  view source on GitHub ↗

Internal logging method.

(self, log_type: LogType, level: LogLevel, message: str, 
             correlation_id: str = None, **kwargs)

Source from the content-addressed store, hash-verified

80 return json.dumps(log_entry, default=str)
81
82 def _log(self, log_type: LogType, level: LogLevel, message: str,
83 correlation_id: str = None, **kwargs):
84 """Internal logging method."""
85 if self._should_log(level):
86 formatted_log = self._format_log(log_type, level, message, correlation_id, **kwargs)
87 log_level = self._get_logging_level(level)
88 self.logger.log(log_level, formatted_log)
89
90 def info(self, message: str, correlation_id: str = None, log_type: LogType = LogType.WORKFLOW, **kwargs):
91 """Log information."""

Callers 11

infoMethod · 0.95
debugMethod · 0.95
warningMethod · 0.95
errorMethod · 0.95
criticalMethod · 0.95
log_exceptionMethod · 0.95
log_requestMethod · 0.95
log_responseMethod · 0.95
log_security_eventMethod · 0.95
log_performanceMethod · 0.95
log_workflow_eventMethod · 0.95

Calls 3

_should_logMethod · 0.95
_format_logMethod · 0.95
_get_logging_levelMethod · 0.95

Tested by

no test coverage detected