RandomClear icon

How to add custom information into bug report

RandomClear | PRO | 07/14/15 03:50:54 AM UTC | 0 ⭐ | 10633 👁️ | Never ⏰ | []
Delphi |

940 B

|

None

|

0 👍

/

0 👎

uses
  EException,   // for TEurekaExceptionInfo
  ELogBuilder,  // for RegisterEventCustomDataRequest and TBaseLogBuilder
 
  // EModules,  // for CurrentEurekaLogOptions
  ESysInfo;     // for GetFileVersion
 
procedure AddMoreInfo(const ACustom: Pointer; AExceptionInfo: TEurekaExceptionInfo; ALogBuilder: TBaseLogBuilder; ADataFields: TStrings; var ACallNextHandler: Boolean);
begin
  ADataFields.Values['Application Version'] := GetFileVersion(ParamStr(0));
  ADataFields.Values['Application License'] := {$IFDEF ENTERPRISE}'ENT'{$ELSE}'STD'{$ENDIF};
  ADataFields.Values['Customer'] := 'Test';
end;
 
initialization
  RegisterEventCustomDataRequest(nil, AddMoreInfo);
 
  // Don't forget to include custom data in your bug report!
 
  // Open: Project / EurekaLog options / Bug report / Content
  // Scroll down to bottom and enable "9. Custom data".
 
  // or do it programmatically:
 
  // CurrentEurekaLogOptions.soCustomData := True;
end.

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

    |

    👍

    /

    👎