开发者

Message Log Component in C#

What I want to have is a box that displays a list of messages in chronological order (most recent at the bottom) like is common in FTP apps and IDEs. Here's the FileZilla message log:

Example of message log in FileZilla http://img571.imageshack.u开发者_运维问答s/img571/9247/messageloginfilezilla.png

At the moment, I'm getting similar functionality from a read only text box, but this isn't perfect.

Bonus points for the following:

  1. Context menu has the option of "copy this message"
  2. Filtering by "level"
  3. Option to write log to file


You could log into Event Log. It has quite usable interface. You can also use Enterprise Library if you plan to switch to database, file or other logging destination which enterprise library supports


Here is one in WPF made for log4net: C# WPF Log4Net Viewer

Edit:
Log2Console is an utility(winforms) based on ListView control for handling logs during development: Log2Console - A Generic Log Viewer (for Log4Net, NLog...)

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜