A
Andreas Mueller
No, I have never used it. From looking at the doc, I don't see aGeorge said:Thansk Andy,
I would like to try some function which is Microsoft built-in.
Do you have any experiences of using TextWriterTraceListener?
http://msdn2.microsoft.com/en-us/library/system.diagnostics.textwritertracelistener.aspx
Does it provide any function of limit the size of log? If it does not
provide the function, are there any way to implement the size limit function
application code?
limitation for the file size, too
Perhaps it is an option for you to implement a custom trace listener.
All you have to do (sounds simple

and implement the desired methods. You have to to the "ringbuffer"
writing yourself.
If you want to stick to MS stuff, how about the enterprise logging
application block?
HTH,
Andy