Caution: this is old EurekaLog 6 documentation. This is not the latest version.
EurekaLog includes a function named CurrentEurekaLogOptions, that provides access to the EurekaLog options of the current module.
Syntax of this function is as follows:
function CurrentEurekaLogOptions: TEurekaModuleOptions;
When EurekaLog is active the Result is the EurekaLog options of the calling module, otherwise this function raises an exception (you can first check that EurekaLog is installed by calling the IsEurekaLogInstalled function).
Note: Don't use this function within EurekaLog events. Use instead the TEurekaExceptionRecord.CurrentModuleOptions parameter.
Example:
uses ExceptionLog, ECore, ETypes; // The required units...
begin ... CurrentEurekaLogOptions.EMailAddresses := 'bugs@eurekalog.com'; CurrentEurekaLogOptions.OutputPath := ExtractFilePath(ParamStr(0)); ... end;
|