delphidelphi-7delphi-xe4eurekalog

Now that TEurekaExceptionRecord is deprecated in EurekaLog 7, what replaces LogText?


While migrating from EurekaLog 6 to 7, I came to notice a compiler warning that TEurekaExceptionRecord is deprecated and I should use TEurekaExceptionInfo.

In my Delphi 7 app with EurekaLog 6, there is a statement like:

exceptionRecord : TEurekaExceptionRecord; 
myString := exceptionRecord.logText;

Now when I am using TEurekaExceptionInfo instead of TEurekaExceptionRecord in my Delphi XE4 with EurekaLog 7 like following:

exceptionInfo : TEurekaExceptionInfo;
myString := exceptionInfo.logText;

I am getting error on the second line because logText does not exist now. Which method has replaced it in EurekaLog 7?


Solution

  • I am the EurekaLog support person. There are large differences between v6 and v7. Your question is difficult to answer since while the globals you are used to in v6 remain in v7, you may not be able to modify or check them in the same way in v7. Success is dependent on when you read or modify the variables. There are several event handlers and each one reads/writes various fields in our EL classes. They are called sequentially, so this is where the timing issue I mentioned comes in. Log text is now created in our dialog box classes, but there are ways to extract raw log text from them.

    I recommend that you open a trouble ticket on our web site and post some code that demonstrates what you are trying to do. You can also check our code snippets library for log management ideas.