RandomClear icon

How to get bug report file name

RandomClear | PRO | 03/23/15 01:41:22 AM UTC | 0 ⭐ | 8845 👁️ | Never ⏰ | []
Delphi |

950 B

|

None

|

0 👍

/

0 👎

// 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).

Comments

  •  icon
    01/01/70 12:00:00 AM UTC
    Plain Text |

    0 B

    |

    👍

    /

    👎

    
        
  •  icon
    01/01/70 12:00:00 AM UTC
    Plain Text |

    0 B

    |

    👍

    /

    👎