|
In this example, we're going to add an additional line in the log file.
C# example:
private void eurekaLog1_CustomDataRequest(Exception Error, EurekaLogSystem.EurekaLogOptions Options, EurekaLogSystem.FieldList DataFields)
{
DataFields.Add("Example", "Just to show where the custom data appears in the log file");
}
|
Visual Basic example:
Private Sub EurekaLog1_CustomDataRequest(ByVal [Error] As System.Exception, ByVal Options As EurekaLogSystem.EurekaLogOptions, ByVal DataFields As EurekaLogSystem.FieldList) Handles EurekaLog1.CustomDataRequest
DataFields.Add("Example", "Just to show where the custom data appears in the log file")
End Sub
|
Now, if you open the log file, there will be one additional category of data. It should look something like this:
Custom Information:
-------------------------------------------------------------------------
8.1 Example: Just to show where the custom data appears in the log file
|