473,491 Members | 3,350 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

Trace: Can anyone suggest a good tool to catch trace messages?

Hi,

I've been looking for a good Trace message monitoring tool to monitor trace
messages (through System.Diagnostics.Trace.WriteLine() etc).

I need it to collect traces from non-EXE code (esp. WebParts).

Can anyone recommend a good tool for my purpose?

Many thanks in advance.

Rukmal.
Nov 15 '05 #1
4 2335
Maybe the tools from SysInternals is what you are looking for. It will catch
all call make to Trace.WriteLine:

http://www.sysinternals.com/ntw2k/fr...ebugview.shtml
José
"Rukmal Fernando" <ru*************@hotmail.com> wrote in message
news:un**************@TK2MSFTNGP09.phx.gbl...
Hi,

I've been looking for a good Trace message monitoring tool to monitor trace messages (through System.Diagnostics.Trace.WriteLine() etc).

I need it to collect traces from non-EXE code (esp. WebParts).

Can anyone recommend a good tool for my purpose?

Many thanks in advance.

Rukmal.

Nov 15 '05 #2
"José Joye" <jo*******@KILLTHESPAMSbluewin.ch> wrote in message
news:%2****************@TK2MSFTNGP12.phx.gbl...
Maybe the tools from SysInternals is what you are looking for. It will catch all call make to Trace.WriteLine:

http://www.sysinternals.com/ntw2k/fr...ebugview.shtml
I took a look at the above URL, but it doesn't say anything about capturing
the output of Trace.WriteLine.

In order to catch the output of Trace.WriteLine, you will need to create an
instance of a class deriving from System.Diagnostics.TraceListener and then
add it to the Trace.Listeners collection.
--
John Saunders
Internet Engineer
jo***********@surfcontrol.com

José
"Rukmal Fernando" <ru*************@hotmail.com> wrote in message
news:un**************@TK2MSFTNGP09.phx.gbl...
Hi,

I've been looking for a good Trace message monitoring tool to monitor

trace
messages (through System.Diagnostics.Trace.WriteLine() etc).

I need it to collect traces from non-EXE code (esp. WebParts).

Can anyone recommend a good tool for my purpose?

Many thanks in advance.

Rukmal.


Nov 15 '05 #3
You might take a look at my article on tracelisteners at
http://www.codeproject.com/csharp/cu...celistener.asp

It has some example code for setting up a tracelistener.

Jerry Dennany
je***@dennany.org
"Rukmal Fernando" <ru*************@hotmail.com> wrote in message
news:un**************@TK2MSFTNGP09.phx.gbl...
Hi,

I've been looking for a good Trace message monitoring tool to monitor trace messages (through System.Diagnostics.Trace.WriteLine() etc).

I need it to collect traces from non-EXE code (esp. WebParts).

Can anyone recommend a good tool for my purpose?

Many thanks in advance.

Rukmal.

Nov 15 '05 #4
John Saunders wrote:
"José Joye" <jo*******@KILLTHESPAMSbluewin.ch> wrote in message
news:%2****************@TK2MSFTNGP12.phx.gbl...
Maybe the tools from SysInternals is what you are looking for. It
will catch all call make to Trace.WriteLine:

http://www.sysinternals.com/ntw2k/fr...ebugview.shtml


I took a look at the above URL, but it doesn't say anything about
capturing the output of Trace.WriteLine.


Jose means the output from the standard DefaultTraceListener class which
generates messages using OutputDebugString. DebugView is an excellent tool
to do this. BTW OutputDebugString is a double edges sword because it couples
your application to the application reading the strings. If the reader
program is not written correctly (eg you put a large delay in the code that
reads the debug strings) then the thread writing the strings will be
blocked. DebugView is well written, of course :-). The VS.NET debugger will
also read OutputDebugStrings, but only for the process that is being
debugged. DebugView will do that for _all_ processes.

Richard
--
my email ev******@zicf.bet is encrypted with ROT13 (www.rot13.org)
Nov 15 '05 #5

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

Similar topics

0
1646
by: Mike G | last post by:
Greetings, I hope this is an appropriate place to ask this. I have written a C# Windows Service that Traces important information and statistics. It is required for me to create a seperate Windows...
6
6043
by: Chris | last post by:
Can anyone point me to some code that will display messages, in a seperate window, from javascipt. ie effectively a trace window? TIA Chris
2
5246
by: Kevin | last post by:
Hi All, Can someone please tell me what the difference is between DEBUG and TRACE. From what I can see, they are two different classes, but with the same members? Whats the purpose of have two...
5
1558
by: Dabbler | last post by:
When I first start up an ASP.NET application with tracing enabled in web.config the first few pages show trace at bottom of the page but then at some point the pages return to normal with no trace...
2
2248
by: Tiësto | last post by:
Should I always check if Trace is enabled before attempting to use Trace.Write or Trace.Warn? will it throw an exception if I don't? will It make thing slower if I write entries in the trace when I...
1
4303
by: Patrick | last post by:
When Tracing in ASP.NET, the IIS process (on IIs5.1) is locking on the Trace file, and I can't read the trace file without restarting the IIS: Even the following does NOT work (how could I fix...
1
1902
by: newcomer | last post by:
I have traced action in XML. Now I would like to replay that. How could I do that based on this XML trace? I am using soap:tcp between client and server. thanks,
8
2131
by: Bryan | last post by:
Does anyone have an example of an application that can connect to a running process and capture Trace.WriteLine calls like in SQL Server Profiler? I know that we can inherit from a TraceListener...
4
2903
by: kyosohma | last post by:
Hi All, Can Python parse a trace file created with MS SQL's profiler? There are a few thousand lines in the trace file and I need to find the insert statements and the stored procedures....
1
6862
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
7364
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
5452
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
4579
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
3087
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
3078
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
1397
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
1
637
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
282
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

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.