TTMSFNCCloudRollBarProject.LogException Method
Logs an exception to the project.
API unit family: TMSFNCCloudRollbar
Declaring type: TTMSFNCCloudRollBarProject
Syntax
procedure LogException(AMessage: string; AErrorType: string; ASource: string; AStackTrace: string = ''; ALevel: TTMSFNCCloudRollBarLogLevel = rllError; ATimestamp: TDateTime = 0; ADescription: string = ''; AEnvironment: string = 'production');
void __fastcall LogException(System::UnicodeString AMessage, System::UnicodeString AErrorType, System::UnicodeString ASource, System::UnicodeString AStackTrace = System::UnicodeString(), TTMSFNCCloudRollBarLogLevel ALevel = (TTMSFNCCloudRollBarLogLevel)(0x3), System::TDateTime ATimestamp = 0.000000E+00, System::UnicodeString ADescription = System::UnicodeString(), System::UnicodeString AEnvironment = L"production");
Parameters
| Name | Description |
|---|---|
AMessage |
Exception message. |
AErrorType |
Error type or exception class name. |
ASource |
Source location, such as a file name. |
AStackTrace |
Optional stack trace or code frame. |
ALevel |
Severity level. Defaults to rllError. |
ATimestamp |
Timestamp of the exception. When 0, the current time is used. |
ADescription |
Optional descriptive text. |
AEnvironment |
Environment name. Defaults to production. |