TTMSMCPClient.OnLog Event
Occurs for every log record the client produces, whether or not logging to file is enabled.
API unit family: TMS.MCP.Client
Declaring type: TTMSMCPClient
Inherited from: TTMSMCPCustomClient
Syntax
OnLog: TTMSMCPClientLoggingEvent;
Remarks
Raised before the record is written to the file, so a handler sees records even when Logging is off. The record reaching the file has the server identity appended to its text, while the handler receives the plain text plus the server entry as a parameter.
Parameters
| Name | Description |
|---|---|
Sender |
Client that produced or forwarded the record. |
AServer |
Server entry the record belongs to, or nil for a record that is not tied to one. The entry belongs to the client's own collection; inspect it rather than freeing it. |
ATimeStamp |
Local time at which the record was produced. |
ALevel |
Severity of the record, which a handler can use to filter what it keeps. |
AMessage |
Text of the record, without the server identity that is appended to the file copy. |