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

Method log_security_event

utils/structured_logger.py:141–144  ·  view source on GitHub ↗

Log security-related events.

(self, event_type: str, message: str, correlation_id: str = None, **kwargs)

Source from the content-addressed store, hash-verified

139 correlation_id, status_code=status_code, response_time=response_time, **kwargs)
140
141 def log_security_event(self, event_type: str, message: str, correlation_id: str = None, **kwargs):
142 """Log security-related events."""
143 self._log(LogType.SECURITY, LogLevel.WARNING, message, correlation_id,
144 event_type=event_type, **kwargs)
145
146 def log_performance(self, operation: str, duration: float, correlation_id: str = None, **kwargs):
147 """Log performance metrics."""

Callers 3

security_middlewareFunction · 0.80
download_sessionFunction · 0.80

Calls 1

_logMethod · 0.95

Tested by

no test coverage detected