Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / ASP.NET / General / April 2008

Tip: Looking for answers? Try searching our database.

save generic asp.net trace information to file

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Alexander Wolff - 18 Apr 2008 22:02 GMT
When asp.net trace is enabled in web.config,
http://mywebserver/myApp/trace.axd list parameter/value pairs for each
control in the HTML Form, ok (this is basic asp.net information and work for
all asp.net applications independently how the asp.net application is
programmed)

I would like..to save this information to a file o database (because
trace.axd information is not persistente, ..is lost when application pool is
recycled)

somebody knows a configuration or toll that allows to do this?

thanks,
alexander
Teemu Keiski - 19 Apr 2008 07:25 GMT
Hi,

ASP.NET provides TraceListener class, whichc serves as a base class for
trace listeners, objects which write trace data to a specified output. There
exists specific implementations of this such as ConsoleTraceListener and
what interesting here, TextWriterTraceListener. However, to integrate these
into ASP.NET (which uses its own TraceContext to write the trace data and
view it with Trace.axd) you need to turn a few switches.

You'll find information on:
http://weblogs.asp.net/dwahlin/archive/2007/07/09/tracing-in-asp-net-application
-layers.aspx


TextWriterTraceListener
http://msdn2.microsoft.com/en-us/library/system.diagnostics.textwritertraceliste
ner.aspx


Walkthrough: Integrating ASP.NET Tracing with System.Diagnostics Tracing
http://msdn2.microsoft.com/en-us/library/b0ectfxd(VS.80).aspx

Signature

Teemu Keiski
AspInsider, ASP.NET MVP
http://blogs.aspadvice.com/joteke
http://teemukeiski.net

> When asp.net trace is enabled in web.config,
> http://mywebserver/myApp/trace.axd list parameter/value pairs for each
[quoted text clipped - 10 lines]
> thanks,
> alexander

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.