views:

58

answers:

2

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

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
+1  A: 

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

Sergej Andrejev
I might be missing something, but do they offer any way to view the logs? It's really the component I'm after.
Tom Wright
Windows has a standard Event Viewer application you can view your logs with - http://en.wikipedia.org/wiki/Event_Viewer
Sergej Andrejev
I eventually used this in conjunction with a ListView component.
Tom Wright
+1  A: 

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

Jens Granlund
Looks nice. *upvote* Pity I'm using windows forms...
Tom Wright
Yeah, I'm opting for a ListView too for now.
Tom Wright