Tom Wright
Tom Wright

Reputation: 11479

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.us/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

Upvotes: 1

Views: 1539

Answers (2)

Jens Granlund
Jens Granlund

Reputation: 5070

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...)

Upvotes: 1

Sergej Andrejev
Sergej Andrejev

Reputation: 9413

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

Upvotes: 1

Related Questions