How to use CustomDataRequest

Top  Previous  Next

EurekaLog includes a "CustomDataRequest" event for interaction with the user program when a raised exception is handled by EurekaLog and the user want add some custom information to the Log text.

 

The syntax of this event is:

 

private void EurekaLog_CustomDataRequest(Exception Error, EurekaLogSystem.EurekaLogOptions Options, EurekaLogSystem.FieldList DataFields)

 

Use the "Error" parameter to check the exception type.

 

Use the "EurekaLogOptions" parameter to get and set every EurekaLog option at run-time.

 

Use the "DataFields" list to add all the needed values using the form: DataFields.Add("FieldName", "FieldValue")