Root > How to... > ...add custom information to a bug report?

...add custom information to a bug report?

Previous pageReturn to chapter overviewNext page   

First, you have to enable custom information for the bug report:

1. Go to Project / EurekaLog options;
2. Go to Bug Report / Content tab;
3. Scroll down to the end and enable "Custom information":

 

 

Enabling custom information for bug report

 

Next, register OnCustomDataRequest event handler:

 

uses
  EEvents;
 
procedure AddMyData(const ACustom: Pointer; 

                    AExceptionInfo: TEurekaExceptionInfo; 

                    ALogBuilder: TObject; 

                    ADataFields: TStrings; 

                    var ACallNextHandler: Boolean);
begin
  // Add your own information
  // Code below is just an example
  ADataFields.Values['Serial'] := ReadYourSerialNumberFromRegistry;
  ADataFields.Values['Used Database'] := 'none';

  ADataFields.Values['Logged on User'] := AExceptionInfo.ExpandEnvVars('%UserName%');
  // ...
end;
 
initialization
  RegisterEventCustomDataRequest(nil, AddMyData);
end.

 

or:

 

uses
  ELogBuilder;
 
procedure AddMyData(const ACustom: Pointer; 

                    AExceptionInfo: TEurekaExceptionInfo; 

                    ALogBuilder: TBaseLogBuilder; 

                    ADataFields: TStrings; 

                    var ACallNextHandler: Boolean);
begin
  // Add your own information
  // Code below is just an example

  ADataFields.Values['Serial'] := ReadYourSerialNumberFromRegistry;
  ADataFields.Values['Used Database'] := 'none';
  ADataFields.Values['Logged on User'] := AExceptionInfo.ExpandEnvVars('%UserName%');
  // ...
end;
 
initialization
  RegisterEventCustomDataRequest(nil, AddMyData);
end.

 

 

See also:




Send feedback... Build date: 2018-11-26
Last edited: 2018-11-12
PRIVACY STATEMENT
The documentation team uses the feedback submitted to improve the EurekaLog documentation. We do not use your e-mail address for any other purpose. We will remove your e-mail address from our system after the issue you are reporting has been resolved. While we are working to resolve this issue, we may send you an e-mail message to request more information about your feedback. After the issues have been addressed, we may send you an email message to let you know that your feedback has been addressed.


Permanent link to this article: https://www.eurekalog.com/help/eurekalog/how_to_add_information_to_bug_report.php