C# – How to set Quartz.net worker thread name

clog4netnetquartz.netscheduling

How can I set name of the worker thread in Quartz.net?

[2009-12-15 08:56:25] [DefaultQuartzScheduler_Worker-1] INFO

I wanted to see some meaningful information in the logs. I tried using JobDetail constructor, but looks like I am wrong.

var job = new JobDetail("n1", null, typeof (MyJob));

Best Answer

Atleast there is no way to set the name of the worker thread. However, I have used %property facility of log4net to produce meaningful thread name in log files