Write to Task Category in Windows log

Topics: Logging Application Block
Oct 13, 2008 at 12:00 PM
Hello Everyone.

Does anyone know how to write information in column "Task Category" shown i Windows Event list?
I'm currently doing something like this.
LogEntry entry = new LogEntry();
entry.Message = "message";
entry.Title = "Log";
entry.Categories = new string[] { category };
...
...
Logger.Write(entry);

Thanks
Oct 13, 2008 at 1:08 PM
Hi,

The short answer is that you can't without creating a new event log trace listener. Here's a more detailed explanation http://www.codeplex.com/entlib/Thread/View.aspx?ThreadId=23987.

Regards,
Fernando
Oct 13, 2008 at 1:31 PM
Thanks.
/Lasse