save generic asp.net trace information to file

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
Alexander Wolff [ Fr, 18 April 2008 23:02 ] [ ID #1945180 ]

Re: save generic asp.net trace information to file

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. textwritertracelistener.aspx

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



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


"Alexander Wolff" <alexander.wolff [at] gmail.com> wrote in message
news:eBzPGcZoIHA.3892 [at] TK2MSFTNGP04.phx.gbl...
> 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 [ Sa, 19 April 2008 08:25 ] [ ID #1945636 ]
Microsoft » microsoft.public.dotnet.framework.aspnet » save generic asp.net trace information to file

Vorheriges Thema: Control inside content page to access Master Page Vars
Nächstes Thema: Hyperlink & Frames