I'm using TextWriterTraceListener to log diagnostics messages to a text file. However I wan't also to log a timestamp of every trace message added. Is it possible to define a kind of formatter for the listener that would automatically add timestamps?
Currently I'm adding timestamps manually on every Trace.WriteLine() call but this isn't...
Recently two of our clients have reported problems with our applets. Looking at the java plugin console it is full of ClassNotFoundException so none of our code is executed.
I've been able to reproduce the stack trace using a virtual pc image with 0 free space on disk, but the problem goes away as I restore some disk space, and the user...
Is there an existing tool to filter an NS2 tracefile according to nodes' locations? I.e. only show events for nodes between x1,y1 and x2,y2.
...
I have implemented a custom trace listener (derived from TextWriteTraceListener) and now I would like to set my application to use it instead of standard TextWriteTraceListener.
First I added default TextWriteTraceListener in order to make sure it works ok and it does. Here's my app.config:
<configuration>
<system.diagnostics>
...
I've enabled trace pageoutput="true" in my web.config and I like the easy way it provides of seeing all this stuff at the bottom of the page.
I'd like to get the same output from trace at the bottom of the output from my httphandler. Is there a way to dump out the same trace info via code that would follow this code:
public class Uplo...
I've inherited a rather large WPF application, and I need to generate application traces for a significant portion of it. Because of the complexity of the project, I'd like to do this without making any changes to the code base, if possible. I mostly need to know the stack deltas, ie when a function call or return takes place. Is ther...
How can I find out who created a Thread in Java?
Imagine the following: You use ~30 third party JARs in a complex plugin environment. You start it up, run lots of code, do some calculations and finally call shutdown().
This life-cycle usually works fine, except that on every run some (non-daemonic) threads remain dangling. This would...
In NUnit, I'm used to writing Trace statements in the test, and having them show up in the trace tab of the NUnit gui.
On a new project, I'm moving to the built in Unit Testing in Visual Studio Professional Addition, which I believe is an interface to mstest.exe.
Test Code:
<TestMethod()>
Public Sub TestPagesInheritFromBasePage()
...
I'm looking for a ASP.NET module that will benchmark results, session, sql queries & other stuff & spit out on the page. I know Trace will give you some of that but not the sql part. I know Jeff had something similar for alpha stackoverflow, just wondering if there was a http module already out there that did this.
Similar to CodeIgni...
For a C++ project that I'm developing in Visual Studio 2005, I would like to disable the TRACE output option while running the code in debug mode. I have searched the internet about how to achieve this, but no luck. Is this even easily achievable? If so, how? Thanks in advance.
Update #1:
#define USETRACE 0
#if !USETRACE && DEBUG
...
I have a web service written with Visual Studio 2005. My web.config file contains this:
<system.diagnostics>
<trace autoflush="true" indentsize="4" />
</system.diagnostics>
But any call to System.Diagnostics.Trace.WriteLine is ignored. When I step through my code, those lines are skipped over.
Is there another way I should be t...
Can anyone point me in decent documentation for the Trace system in the .NET Framework?
I feel like I understand TraceListeners reasonably well, along with the TraceSwitch and BooleanSwitch but I can't seem to wrap my head around what exactly the TraceFilter and SourceFilter are supposed to be use for and how to effectively apply them...
Hello,
I am trying to make an application that logs particular events in flashlog.txt (the current location) using the trace() function. Right now, the application correctly logs to this file when I trigger the events (pressing a button/closing a dialog). What I would like to have happen is for this data to be saved forever (or until ...
For my WPF application I do logging to a text file using a TextWriterTraceListener. How can I also display the Trace output to a textbox?
...
As a followup to this two questions and its answers Question 1 and Question 2.
What gives better performance on Oracle using operator in, or or union? I think on a table with >1 mio rows with 10-500 rows per distinct value of y.
select * from table where y in (1,2,3)
or
select * from table where (y = 1 or y = 2 or y = 3)
or
selec...
With the ASP.NET Events ETW (Event Tracing for Windows) provider, can I write custom messages to the trace from an ASP.NET page?
...
Is there a way to trace/log sql from the code (not from the db side, but rather what the code thinks it's doing)?
I am using Pro*C/C++: Release 8.1.7.0.0 for Oracle
...
I have enabled .NET network tracing per this article here:
http://msdn.microsoft.com/en-us/library/ty48b824.aspx
Unfortunately, the log files are generated for both Release and Debug builds even though TRACE is not enabled for my Release build.
I'm trying to find a way to leave the logging enabled for the Debug build and disabled for ...
Does anyone know a way to enabled Tracing using a TraceListener for the MySQL Connector/net I'd like it to log the SQL Queries that are actually run against the DB, i.e. see the SQL with the parameter values substituted in.
...
Is there any tool available, from Microsoft or 3rd party, that allows a trace to be performed on Windows Mobile 6 device running Microsoft SQL Server 2005 Mobile Edition?
...