473,800 Members | 2,380 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

read process trace information

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 Forms application that can attach to this service and read in the trace information for display, so that a user can see what the service is doing, similar to VS.NET's debugger.

I'm at a loss for a good way to do this. For statistics I'm sure I could implement performance counters, but for messages and status, I'm not sure performance counters are entirely appropriate.

I could write the trace information to a text file, but a) the text file won't be able to be read because it's in use by the TraceListener b) the location of the log would have to be hardcoded or configured, which is sort of unattractive c) a system would have to be put in place to poll the log which is also sort of blah. I suppose I may not have a choice and just deal with doing it this way.

Does anyone have any suggestions of where to start?

Thanks in advance for any help.

Mike
Jul 21 '05 #1
0 1666

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

Similar topics

4
6597
by: Prince Kumar | last post by:
I joined a company recently and they have a java program which hangs (does nothing) after a while. This is no way consistent. It could succeed quite a few times and can fail a few other times. There is no consistency when it fails. Could anyone here shed some light on how to debug/resolve the issue. I guess IBM looked at the issue and were not able to pinpoint where the issue is. When the program hangs and when force the DB2...
2
5268
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 different classes that seem to do the same thing? Thanks alot for any help, much appreciated Kevin
0
809
by: Antoine | last post by:
Can someone please tell me simply, if I include my PDB file with my dll, does that include line numbers on the deployed application If its being used at customer sites, in any trace stack error messages when debug is enabled? Many thanks Antoine
3
2169
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 from an aspx file. Even a page with <%@ Page Language = "c#" Trace="True" %> doesnt show the trace information. If i create an .asp file, the server side code between <% %> will process and display correctly on the page.
1
4372
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 this??): System.Diagnostics.Trace.WriteLine(System.DateTime.Now.ToLongTimeString()+ "--" + dirException.ToString()); System.Diagnostics.Trace.Flush(); ((System.Diagnostics.TraceListener) System.Diagnostics.Trace.Listeners).Close();
0
335
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 Forms application that can attach to this service and read in the trace information for display, so that a user can see what the service is doing, similar to VS.NET's debugger. I'm at a loss for a good way to do this. For statistics I'm sure I...
0
2700
by: =?Utf-8?B?R2lkaQ==?= | last post by:
Hi, I started a thread regarding this issue, but now i'm facing new problem, so i'm starting a new thread, hope it's ok... anyway, using my c# windows application, i'm excuting and exe file (which is written in c++), this exe excute some batch files, and those batch file sometimes wait for user's input. i want to diplay the output of this exe on win32 form (textbox or something) and ask the user for input when i need it. the problem...
1
2090
by: Alexander Wolff | last post by:
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)
2
13376
by: gachsaran | last post by:
Hi I have some mp3 files and i want to write a program to read alle information regarding singers, name of song, and other technical info. and write them to my database. I need to read tags information from mp3 file. Like when you use Easy tag program to read tags info. Any direction will be appreciated. Thanks
0
9690
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9551
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10505
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
1
10253
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
10033
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
9085
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7576
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
2
3764
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2945
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 can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.