I'm using delphi 7.
I need to log to a file the complete informations of any exception that occurs.
Normally I use Eurekalog. This wonderful product shows a dialog with all the stack trace information and many many others for debugging purpouse.
I need to access this informations Eureka log gives me (really I need just the stack trace) because I need to send them in a syslog deamon. Is there a way to access the information from the Eureka log programmatically ?
I can use the bare delphi 7 or Eurekalog 6.1
Handle the OnExceptionNotify
event. In your event handler, do whatever you want with the AExceptionInfo.CallStack
property, such as saving it to disk or sending it to some other process. Note that EurekaLog already saves bug reports to disk by default, so if that's all you want to do, you don't need any special code.
Use RegisterEventExceptionNotify
to register your event handler, or use a TEurekaLogV7
component. For details and general information on handling EurekaLog events, see the documentation for the EEvents unit.
OnExceptionNotify
occurs for unhandled exceptions. If you want to be notified of any exception, including ones that eventually get handled within your program, then you should use the OnRaise
event instead.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With