semantics
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user