TTMSFNCCloudSentry.LogException Method
Logs an exception entry to the supplied project.
API unit family: TMSFNCCloudSentry
Declaring type: TTMSFNCCloudSentry
Inherited from: TTMSFNCCustomCloudSentry
Overloads
Overload 1
Logs an exception entry to the supplied project.
procedure LogException(AProject: TTMSFNCCloudSentryProject; AMessage: string; AErrorType: string; ASource: string; AStackTrace: string = ''; ALevel: TTMSFNCCloudSentryLogLevel = sllError; ATimestamp: TDateTime = 0; AValue: string = '');
Parameters
| Name | Description |
|---|---|
AProject |
Target project. |
AMessage |
Exception message. |
AErrorType |
Exception type or class name. |
ASource |
Source location or component that raised the exception. |
AStackTrace |
Optional stack trace. |
ALevel |
Severity level; defaults to error. |
ATimestamp |
Optional entry timestamp; 0 uses the current time. |
AValue |
Optional additional value associated with the entry. |
Overload 2
Logs an exception entry to the project identified by its identifier.
procedure LogException(AProjectID: string; AMessage: string; AErrorType: string; ASource: string; AStackTrace: string = ''; ALevel: TTMSFNCCloudSentryLogLevel = sllError; ATimestamp: TDateTime = 0; AValue: string = '');
Parameters
| Name | Description |
|---|---|
AProjectID |
Identifier of the target project. |
AMessage |
Exception message. |
AErrorType |
Exception type or class name. |
ASource |
Source location or component that raised the exception. |
AStackTrace |
Optional stack trace. |
ALevel |
Severity level; defaults to error. |
ATimestamp |
Optional entry timestamp; 0 uses the current time. |
AValue |
Optional additional value associated with the entry. |