semantics

This commit is contained in:
2026-05-26 09:30:41 +03:00
parent 1e7bcecaea
commit 9ffa8af1dc
623 changed files with 28045 additions and 26557 deletions

View File

@@ -1,7 +1,7 @@
# #region WsLogHandlerModule [C:3] [TYPE Module] [SEMANTICS pydantic, dto, log-entry]
# @BRIEF WebSocket log handler module providing LogEntry DTO and WebSocketLogHandler for buffered log streaming.
# @RELATION DEPENDS_ON -> [LogEntry]
# @RELATION COMPOSES -> [CotJsonFormatter]
# @RELATION DEPENDS_ON -> [CotJsonFormatter]
from collections import deque
from datetime import datetime
import logging
@@ -22,7 +22,7 @@ class LogEntry(BaseModel):
# #region WebSocketLogHandler [C:3] [TYPE Class] [SEMANTICS logging,handler,websocket,buffer]
# @BRIEF Custom logging handler that captures log records into a fixed-capacity buffer for WebSocket streaming.
# @RELATION DEPENDS_ON -> [LogEntry]
# @RELATION COMPOSES -> [CotJsonFormatter]
# @RELATION DEPENDS_ON -> [CotJsonFormatter]
class WebSocketLogHandler(logging.Handler):
"""
A logging handler that stores log records and can be extended to send them