Eurekalog: save stacktrace exception to log file

I am using delphi 7.

I need to write to the file all the information about any exception that occurs.

I usually use Eurekalog. This wonderful product shows a dialog with all the information about the stack trace and many others for debugging purpouse.

I need to access this information, the Eureka log gives me (really, I only need a stack trace) because I need to send them to syslog deamon. Is there a way to access the information from the Eureka magazine programmatically ?

I can use naked delphi 7 or Eurekalog 6.1

+4
source share
2 answers

Handle the OnExceptionNotify event. In your event handler, do whatever you want using the AExceptionInfo.CallStack property, for example, save it to disk or send it to another process. Note that EurekaLog by default saves error reports to disk, so if thatโ€™s all you want to do, you donโ€™t need special code.

Use RegisterEventExceptionNotify to register an event handler or use the TEurekaLogV7 component. For more information and general information on handling EurekaLog events, see the documentation for the EEvents block .

OnExceptionNotify occurs for unhandled exceptions. If you want to be notified of all exceptions, including those that will ultimately be processed in your program, then you should use OnRaise .

+8
source
+2
source

All Articles