To improve the accuracy of our log messages in log4net, I went looking for a
method to improve the date stamp.  I found that the NLog library has a
formatter for adding a QueryPerformanceCounter to a log entry.  Not wanting
to switch logging libraries, I converted their feature into a
PatternConverter for log4net.  I have included the file here if anyone is
interested in using it or merging it into log4net proper.

Also, are there any thoughts on if using a QPC is the proper method here, or
if a System.Diagnostics.Stopwatch would be preferred?

Dave

-- 
Dave Nay
Senior Software Developer
Mettler Toledo CI-Vision

Attachment: QpcPatternConverter.cs
Description: Binary data

Reply via email to