Table of Contents

TTMSMCPCustomClientConnection.OnLogging Event

Occurs when the server pushes a log record.

API unit family: TMS.MCP.Client.Connection Declaring type: TTMSMCPCustomClientConnection

Syntax

OnLogging: TTMSMCPClientServerLoggingEvent;

Remarks

Raised on the main thread, and always followed by forwarding the same record to the owning client, so a handler here does not suppress the client-level log. Records only arrive while the server declared a logging capability and the configured severity allows them.

Parameters

Name Description
Sender Connection that received the record.
ATimeStamp Local time at which the record was received.
ALevel Severity the server assigned, which a handler can use to filter what it keeps. A severity that is not recognized is reported as llDebug.
ALogger Name of the emitting logger, empty when the server supplied none.
AData Payload the server attached, which may be any JSON value and may be nil. It belongs to the notification being processed and is released as soon as the handler returns, so copy anything that must outlive the call.