Custom tracing

  • Thread starter Thread starter Kejpa
  • Start date Start date
K

Kejpa

Hi,
I'd like some custom tracing for my application.
Along with the usual stuff like Message and Category I'd like to save what
level the trace was at and what time it occurred.
I'm not sure about using the standard levels either, but that's another
issue.

For a starter I thought I'd use a binary file but eventually I might end up
with a databasetable.

Anyone have a good starting point, I've looked and found that it is possible
but the descriptions are too brief and the samples too shallow :(

TIA
Kejpa
 
Take a look at the nSpring logging framework. They use custom tracers to do
it. You could inherit from System.Diagnostics.TextWriterTraceListener
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top