TsgcWSAPIServer_MCP › Methods › SendLogMessage
Sends a notifications/message log entry to every session whose logging level allows it.
procedure SendLogMessage(aLevel: TsgcAI_MCP_LoggingLevel; const aLogger, aData: string);
| Name | Type | Description |
|---|---|---|
aLevel | TsgcAI_MCP_LoggingLevel | RFC 5424 severity of the entry (debug, info, notice, warning, error, critical, alert, emergency). |
aLogger | const string | Optional logger name identifying the component that produced the message. |
aData | const string | Free-form payload (plain text or JSON) delivered to the client as the message body. |
Fans out a notifications/message entry to every open session whose current logging level (set by the client through logging/setLevel) is at or below aLevel. The notification is only emitted when TransportOptions.HttpStreamable.Enabled is True; short-lived HTTP clients do not receive asynchronous logs. Sessions that opted into a higher severity threshold will silently discard lower-priority entries.
MCPServer.SendLogMessage(aimcpllInfo, 'ops', 'Deployment 42 rolled back successfully.');