Collection as a Trace/Debug Listener?

Jun 9 2004 7:58 PM
I am a C# beginner. In VB/ASP i had developed an infrastructure that allowed recent trace/debug information to be kept in memory. It would be dumped to an error handler when exceptions were raised. Only the most recent trace entries would be retained. Is it possible to do the same with the .Net Trace class, or will i have to write my own code? From what i have read it seems that a Trace Listener can only be a stream, like writing to a disk file. This is useful, but i have other troubleshooring needs. Thanks