分享

delphi

 quasiceo 2014-09-24

I was wondering; which logging libraries for Delphi do you prefer?

Please try to add a reasoning why you prefer one over the other if you've used more than one.

I'll add suggestions to this question to keep things readable.

asked Sep 16 '08 at 14:34
PatrickvL
2,63811635

closed as not constructive by David Heffernan, Jens Mühlenhoff, jbl, Firo, Anthony Grist Mar 21 '13 at 15:46

As it currently stands, this question is not a good fit for our Q&A format. We expect answers to be supported by facts, references, or expertise, but this question will likely solicit debate, arguments, polling, or extended discussion. If you feel that this question can be improved and possibly reopened, visit the help center for guidance.If this question can be reworded to fit the rules in the help center, please edit the question.


10 Answers

up vote 9 down vote accepted

SmartInspect is really useful. It is the only one I have used. The logging library is good, but the console and the remote TCP/IP logging takes it over the top. I think CodeSite has some similar features.

answered Sep 17 '08 at 16:30
Jim McKeeth
23k1479152

    
I liked the features but I have a home-rolled solution that requires a built-in GUI that my end-users can also use and SmartInspect only has a stand-alone viewer. –  Brian Frost Aug 20 '11 at 10:17

I've used Codesite and it has been fantastic. On one project, a word-processor, I could easily output a million debug lines, all structured, and Codesite helped greatly with its auto-collapsing indented output. For any task where you have to know what really is happening "underneath" a process that can't be interrupted by user interaction, Codesite is really good. I recommend it heartily.

answered Sep 16 '08 at 14:55
mj2008
4,83211545

    
Have you compared CodeSite to other tools? What made you choose CodeSite? –  PatrickvL Sep 16 '08 at 15:02
    
The viewer is very good. What I didn't like that much about CodeSite is that it is elaborate to setup with it's dispatcher and viewer and some extra rights needed in the documents and settings\all users folder. –  Lars Truijens Sep 16 '08 at 16:52

Take a look at the features of this Open Source unit: http://blog./post/2011/04/14/Enhanced-logging-in-SynCommons

  • logging with a set of levels (not only a hierarchy of levels);
  • fast, low execution overhead;
  • can load .map file symbols to be used in logging;
  • compression of .map into binary .mab (900 KB -> 70 KB);
  • optional inclusion of the .map/.mab into the .exe;
  • handle libraries (.ocx/.dll);
  • exception logging (Delphi or low-level exceptions) with unit names and line numbers;
  • optional stack trace with units and line numbers;
  • methods or procedure recursive tracing, with Enter and auto-Leave;
  • high resolution time stamps, for customer-side profiling of the application execution;
  • set / enumerates / TList / TPersistent / TObjectList / dynamic array JSON serialization;
  • per-thread, rotating or global logging;
  • multiple log files on the same process;
  • optional colored console display;
  • optional redirected logging (e.g. to third party library, or to a remote server);
  • log viewer GUI application, with per event or per thread filters, and method execution profiler;
  • Open Source, works from Delphi 5 up to XE6 (Win32 and Win64).

Your feedback is welcome!

answered Apr 15 '11 at 12:08
Arnaud Bouchez
26.2k32675

    
HI Arnaud, a GUI log viewer is necessary! –  Edwin Yip Apr 16 '11 at 12:50
1  
@Edwin OK - I'm currently working on it. :) –  Arnaud Bouchez Apr 20 '11 at 18:27
    
@Arnaud, that's sooo great! I was planning to evaluate Smart Inspect, the key feature to me is that my clients can send me a log file and then I can use a GUI to view, search and filter the log entries, so that I can locate problems in my software :) But I'm not in a hurry so I'll wait for your implementation, on the other hand, you are very fast in delivering high quality open source Delphi gems, I meant it. –  Edwin Yip Apr 21 '11 at 11:53
    
@Edwin See blog./post/2011/08/20/Enhanced-Log-viewer about the new log viewer tool available for our TSynLog class. –  Arnaud Bouchez Aug 20 '11 at 8:57
    
@Arnaud Bouchez sounds great but where is the download link ? –  yeradis Oct 26 '11 at 7:28

I have just updated Log4Delphi 0.8 on the Sourceforge page and it rolls up patches and bug fixes from the last 4 years.

Sourceforge Log4Delphi Downloads

answered Nov 12 '10 at 13:49
Melloware
859812

Log4net/ports of Log4xxx to other languages. It's open-source, pretty wide-spread, popular, has a good community behind, and isused widel (for example, in Hibernate/nHibernate).

answered Sep 16 '08 at 14:36
Kaerber
75658

    
I'm sorry, but I meant this as a Delphi-only question. I've edited the question to better show that intention. –  PatrickvL Sep 16 '08 at 14:38
1  
And now I've found the port to Delphi, thanks for the mention - I didn't know about this yet! –  PatrickvL Sep 16 '08 at 14:51

And don't forget the free open source TraceTool

answered Sep 16 '08 at 16:49
Lars Truijens
24.7k35193

An important value behind CodeSite is Ray Kanopka's support. He personally answers emails and newsgroup posts, and has done so for many years. His answers often contain code that illustrates excellent coding habits.

answered Sep 19 '08 at 3:24
Argalatyr
3,75312049

I didn't use CodeSite probably because I'm completely happy with SmartInspect. Highly recommended.

answered Sep 16 '08 at 14:44
Erick Sasse
1,16611324

I am looking into Codesite as well. I built my own in the past but I really like the featrues in Codesite. The Raize componenets are very well written and always quality stuff.

answered Sep 16 '08 at 15:53
Peter
8516

Log4D is another implementation which is based on Log4J and easy to extend and configure.

answered Apr 2 '09 at 8:59
mjn
19.5k990219

    本站是提供个人知识管理的网络存储空间,所有内容均由用户发布,不代表本站观点。请注意甄别内容中的联系方式、诱导购买等信息,谨防诈骗。如发现有害或侵权内容,请点击一键举报。
    转藏 分享 献花(0

    0条评论

    发表

    请遵守用户 评论公约

    类似文章 更多