473,385 Members | 1,888 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

Catch trace enabled='true' output and store in database?

DC
Hi,

I want to store the trace information I get on trace.axd when I use
<trace enabled="true" /> in a database or a custom log file. Is it
possible to intercept the trace mechanism at a suitable point?

TIA,

Regards

DC

Jun 12 '06 #1
2 1503
Yes you can. Just write a custom TraceListener class derived from
TraceListener or any of the supplied ones if they are closer to what you want.
Peter

--
Co-founder, Eggheadcafe.com developer portal:
http://www.eggheadcafe.com
UnBlog:
http://petesbloggerama.blogspot.com


"DC" wrote:
Hi,

I want to store the trace information I get on trace.axd when I use
<trace enabled="true" /> in a database or a custom log file. Is it
possible to intercept the trace mechanism at a suitable point?

TIA,

Regards

DC

Jun 12 '06 #2
DC
Thank you for the pointer, Peter. I ended up using some custom
diagnostics which I hooked into the global.asax, but if I ever want to
go a more professional route then I will use the TraceListener class.

Regards
DC

Peter schrieb:
Yes you can. Just write a custom TraceListener class derived from
TraceListener or any of the supplied ones if they are closer to what you want.
Peter

--
Co-founder, Eggheadcafe.com developer portal:
http://www.eggheadcafe.com
UnBlog:
http://petesbloggerama.blogspot.com


"DC" wrote:
Hi,

I want to store the trace information I get on trace.axd when I use
<trace enabled="true" /> in a database or a custom log file. Is it
possible to intercept the trace mechanism at a suitable point?

TIA,

Regards

DC


Jun 17 '06 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: dave | last post by:
Anyone seen why trace output on remote server goes on and off randomly? thx dave
4
by: werdna.sivad | last post by:
In PHP I need to be able to execute another script from inside another and catch the output. How do I do this? The require() and include() functions will execute a script, but it sends the output...
0
by: IK | last post by:
Hi all, How can I save trace output to the text file in app's dir. In addition, I need to save debug info from Session_End event in global.asax. The code below saves file only in...
3
by: JR | last post by:
I'm experiencing a problem where, for seemingly no reason, trace output stops being logged (and appearing on my pages.) trace.enabled suddenly just turns to false. Any idea why this happens?...
3
by: Bruno Paquette | last post by:
I have installed visual studio .net and now i started to write the first few examples from the 70-315 book by Kalani. It looks like all server side code that i put between <% %> doesnt process...
1
by: Atara | last post by:
Can I view Trace output when launching a win forms application OUTSIDE of the ide? e.g. using switches in the configuration file? Must I declare a trace listener? Thanks Atara.
1
by: shiva359 | last post by:
Dear All , will changes done on a table data After a load with nonrecoverable option on a archive loging enabled Database be recorded in logs if we don't do a complete backup ...
0
by: probashi | last post by:
In NUnit GUI Runner I see two tabs like 'Trace Output' and 'Internal Trace'. Obviously these are used for some kind of tracing. How can I turn on or user these tracing features? Thanks in...
1
by: jtertin | last post by:
My first inclination would be that this is not possible, but wanted to ask anyway (in case the Shell() call is bi-directional or can return output): If I use VBA to execute a call to the command...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.