...

View Full Version : Thread name



uxair
05-24-2007, 12:22 PM
I'm developing an application on visual studio 2005, and I want to know how can I set the thread name for my application.

Background: I'm using log4net for logging app-messages, if defined under ConversionPattern message also cantains thread name and incase thread does not have a name it shows the thread ID which I'm getting in my log messages.

eg:
2007-05-24 14:52:03,858 [11] INFO CSVLogger - test msg
2007-05-24 14:52:46,219 [9] INFO CSVLogger - test msg

Roelf
05-24-2007, 01:44 PM
well, the Thread class has a Name property, try to set that to a value of your choice........



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum