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).
Don't use this function within EurekaLog events. Use instead the TEurekaExceptionRecord.CurrentModuleOptions parameter.
uses ExceptionLog, ECore, ETypes; // The required units...
CurrentEurekaLogOptions.EMailAddresses := 'firstname.lastname@example.org';
CurrentEurekaLogOptions.OutputPath := ExtractFilePath(ParamStr(0));