Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // Please use OnCustomFileName event when possible.
- // You can inspect and modify (if needed) all file names, including bug report file name.
- // See: http://www.eurekalog.com/help/eurekalog/topic_type_eevents_televcustomfilenamemeth.php
- // (for bug report file - you are interested in AFileType = ftSavedBugReport)
- // Alternatively, you can use such code:
- uses
- EModules;
- // Global:
- BugReportFileName := CurrentEurekaLogOptions.ExpandEnvVars(CurrentEurekaLogOptions.OutputLogFile(''));
- // Event handler:
- procedure OnExceptionNotify(const ACustom: Pointer; AExceptionInfo: TEurekaExceptionInfo; var AHandle: Boolean; var ACallNextHandler: Boolean);
- var
- BugReportFileName: String;
- begin
- BugReportFileName := AExceptionInfo.Options.ExpandEnvVars(AExceptionInfo.Options.OutputLogFile(''));
- end;
- // Be aware, that global code can not expand some variables (such as %BugID% - because those does not exist outside of exception processing code).
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement