L
llyal2000
I am a C# newbie. In VB i had developed an infrastructure
that allowed recent trace/debug information to be kept in
memory. I would like to do similar in .Net. Is it
possible? or will i have to write my own code? From what i
have read in the Microsoft books and documentation it
seems that a Trace Listener can only be a stream, like
writing to a disk file. But i don't want to capture all
trace events to an external file or db, but store only
some trace events in memory so to be available to an error
handler. Example, application will retain the last 100
trace events in memory; when exception occurs, central
error handler dumps trace information and creates error
report. Can this scenario work with the Trace/debug
classes? What is the How To?
Thank you
that allowed recent trace/debug information to be kept in
memory. I would like to do similar in .Net. Is it
possible? or will i have to write my own code? From what i
have read in the Microsoft books and documentation it
seems that a Trace Listener can only be a stream, like
writing to a disk file. But i don't want to capture all
trace events to an external file or db, but store only
some trace events in memory so to be available to an error
handler. Example, application will retain the last 100
trace events in memory; when exception occurs, central
error handler dumps trace information and creates error
report. Can this scenario work with the Trace/debug
classes? What is the How To?
Thank you