Is there a way to do normal logging with EureakLog?

删除回忆录丶 提交于 2020-01-04 14:37:27

问题


I am using (and old version of) EurekaLog. It is great for logging exceptions, but is there a way to make it just log things normally? Or is it just not meant for that?


回答1:


Chris already mentioned our logging tool SmartInspect (thanks!), I just wanted to add that we also partnered with the EurekaLog guys to provide a direct integration with EurekaLog via a special memory log protocol:

Integrating SmartInspect and EurekaLog

The memory protocol allows you to write your log messages to memory (e.g. in a 2MB block) and only flush the logging data when a crash occurs. This is a very fast, direct way to log data at run-time and to add a useful crash log to an EurekaLog exception report. I'm not aware of any other logging tool that can do this.




回答2:


From the documentation:

EurekaLog ... gives your application ... the ability to catch all exceptions ... and generate a detailed log of the call stack with unit, class, method and line-number information. ... EurekaLog does not affect the performance of your application, as it only executes when an exception is raised.

So no, it doesn't do "logging" as in tracing. For that you'd need a logging tool. Not sure what version of Delphi you're on, but the new version, Delphi XE, comes bundled with Raize CodeSite, a very powerful logging tool. Maybe you should check it out.




回答3:


It's not meant for that, sorry. You CAN have it include your regular "run log" as an attachment when it mail the crashdump back to you, and you can also inject your own messages directly into the crashdump. But for general logging, no.

A high-end logging tool is SmartInspect, by a frequent SO sponsor Gurock Software. I've only played with it a little, but it seems really nice. http://www.gurock.com/products/smartinspect/




回答4:


I would use TraceTool, a free trace utility written in Delphi. It is quite complete, can be used in several languages and it is free. It is not as sophisticated as SmartInspect but does what it promises. You can download it from here.




回答5:


Latest version of EurekaLog have basic logging capabilities. You can use EurekaLog's logging, or use proper logging framework (such as already mentioned CodeSite, SmartInspect, etc.).

Sample code for all mentioned cases is provided in EurekaLog's help.



来源:https://stackoverflow.com/questions/3728349/is-there-a-way-to-do-normal-logging-with-eureaklog

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!