473,386 Members | 1,810 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,386 software developers and data experts.

asp.net tracing using System.Diagnostics

I am wondering whether asp.net applications can write trace information
using the System.Diagnostics.Trace class, and also whether in web.config,
the <system.diagnostics> element and its sub elements have effect.

Trace.axd is good but not perfect. I would like to use a separate file for
writing trace information in addition to Trace.axd.

Also, what happens when you call Trace.Close which has a set of listeners
including a text file writer listener, and call Trace.Write soon after?
Will it error out or will it reopen the listeners?
I am also assuming that Trace.Close would have no effect on default
listeners such as console, etc. Is that correct?

Thanks much.
Jiho
Nov 18 '05 #1
1 1586
Hi,

this might help :
http://www.thescarms.com/dotNet/DebugTrace.asp

Natty Gur[MVP]

blog : http://weblogs.asp.net/ngur
Mobile: +972-(0)58-888377
*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!
Nov 18 '05 #2

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

Similar topics

0
by: Robert Jenkin | last post by:
hello all... I have the following app.config <?xml version="1.0" encoding="utf-8" ?> <configuration> <system.diagnostics> <switches> <add name="TraceLevelSwitch" value="1" /> </switches>
3
by: Daniel Billingsley | last post by:
The documentation on this subject seems to give you 98% of what you need to know. From various sources, I have compiled an understanding that this should work: <configuration>...
3
by: Shawn Melton | last post by:
I cannot get a clean compile if I add Trace configuration info into my web.config. This generates an error: <configuration> <system.diagnostics> <switches> <add name="MyTraceSwitch" value="4"...
2
by: Dmitry Bond. | last post by:
Hello All. Could you plase help me to configure tracing in Asp.Net application. I use Win2ksp4, .Net 1.1 (+ all latest patches for .Net 1.1 an for Windows). I faced with stable error. On first...
0
by: Lenn | last post by:
Can I add my own TextWriterTraceListener listeners in ASP.NET (web service) application. I have the following in web.config file: <system.diagnostics> <trace autoflush="true" indentsize="4">...
0
by: cesporma | last post by:
Hello - I have created a web service using VS.NET 2005 and using the System.Diagnostics tracing to write to a file. This all works great in my development environment. Once I publish the web...
0
by: cnys | last post by:
We have an ASP.NET 2.0 (C#) app and we're trying to add tracing into it. The tracing functionality within .NET is great, but when we output this to a file, it's kind of sparse. So, we're looking...
0
by: rehto | last post by:
We have an ASP.NET 2.0 (C#) app and we want to enable tracing (see the code snippets below). The first time a user navigates to the app., the tracing works fine (the ASP.NET tracing appears on...
1
by: mquincey | last post by:
One of the features offered by .NET 2.0 is the use of the TraceSource class. In an attempt to demonstrate its use, I wanted to run my test under the following conditions: 1. Use TraceSource class...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
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
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
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.