By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
445,931 Members | 1,531 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 445,931 IT Pros & Developers. It's quick & easy.

Tracing ASP.NET

P: n/a
Hello,

I am wondering if it is possible to export trace output (via trace.axd or
otherwise) to a text file. I would like to search on different requests for
certain conditions that are occuring in our code. What I am doing today is
using trace.axd and viewing each request by hand and scanning for certain
events. Since this particular event only occurs in 1/10 posts, it is
tedious to say the least. If I could get the info exported into a text
file, I can regex on what I need quite easily.

Thanks,
Damon
Nov 18 '05 #1
Share this Question
Share on Google+
2 Replies


P: n/a

"Damon Allison" <dr*@NOOSPAMdnradvertising.com> wrote in message
news:eX**************@TK2MSFTNGP12.phx.gbl...
Hello,

I am wondering if it is possible to export trace output (via trace.axd or
otherwise) to a text file. I would like to search on different requests for certain conditions that are occuring in our code. What I am doing today is using trace.axd and viewing each request by hand and scanning for certain
events. Since this particular event only occurs in 1/10 posts, it is
tedious to say the least. If I could get the info exported into a text
file, I can regex on what I need quite easily.

Thanks,
Damon


from MSDN:

----
You can customize the tracing output's target by adding TraceListener
instances
to or removing instances from the Listeners collection. By default, trace
output
is emitted using the DefaultTraceListener class.
----

Sounds like this is what you need. I've never used it though, so I can't
help you further.
Hans Kesting
Nov 18 '05 #2

P: n/a
Hi Hans,

Thank you for your reply.

Are you looking in the System.Diagnostics namespace? That namespace does
not appear to have an impact on the ASP.NET System.Web.TraceContext class
that outputs information to trace.axd.
Thanks,
Damon



"Hans Kesting" <ne***********@spamgourmet.com> wrote in message
news:#W**************@tk2msftngp13.phx.gbl...

"Damon Allison" <dr*@NOOSPAMdnradvertising.com> wrote in message
news:eX**************@TK2MSFTNGP12.phx.gbl...
Hello,

I am wondering if it is possible to export trace output (via trace.axd or otherwise) to a text file. I would like to search on different requests

for
certain conditions that are occuring in our code. What I am doing today

is
using trace.axd and viewing each request by hand and scanning for certain events. Since this particular event only occurs in 1/10 posts, it is
tedious to say the least. If I could get the info exported into a text
file, I can regex on what I need quite easily.

Thanks,
Damon


from MSDN:

----
You can customize the tracing output's target by adding TraceListener
instances
to or removing instances from the Listeners collection. By default, trace
output
is emitted using the DefaultTraceListener class.
----

Sounds like this is what you need. I've never used it though, so I can't
help you further.
Hans Kesting

Nov 18 '05 #3

This discussion thread is closed

Replies have been disabled for this discussion.