system.diagnostics Questions
2
Solved
I have the following configuration in place, but no traces are going into Application Insights (otherwise Application Insights is working fine for other logging and the Azure diagnostics listener i...
Gibber asked 5/8, 2015 at 17:19
4
I've been having a hard time getting the output of a "sub-process" (one launched internally by a blackbox process that I'm monitoring via c# System.Diagnostics.Process)
I took the advice given by ...
Piloting asked 19/1, 2010 at 18:10
6
Solved
I know I can open Windows Calculator with the following code :
System.Diagnostics.Process.Start("calc");
But I wanna open it in my C# Win Application, i.e : I don't want to open it in the indepe...
Prowl asked 6/11, 2010 at 15:36
5
How can I start a process on a remote computer in c#, say computer name = "someComputer", using System.Diagnostics.Process class?
I created a small console app on that remote computer that just wr...
Credendum asked 26/2, 2010 at 17:56
1
Solved
We already know how System.Diagnostics.Process.Start("C:\filename.png") works, but what if the file name doesn't end with an extension?
How can I run a filename without an extension, using the de...
Sass asked 11/12, 2017 at 21:49
4
I have the following code to read in a large file, say with over a million rows. I am using Parallel and Linq approaches. Is there a better way to do it? If yes, then how?
private static void Rea...
Beefwitted asked 10/8, 2012 at 5:50
1
In my web application, I use
System.Diagnostics.Trace.WriteLine(...);
for diagnostics. The application is published to an Azure deployment slot. I am wondering where I can find these logs in th...
Eastertide asked 31/10, 2017 at 14:56
4
Solved
For enabling Microsoft-Hyper-V and Microsoft-Hyper-V-Management in Windows 2008 R2 Server(64bit), I'm calling dism.exe as a process. The command I've used is
Dism.exe /online /Get-FeatureInfo
/Fea...
Freda asked 9/5, 2011 at 12:13
6
Solved
How do I choose between standard tracing, Logger.NET, Enterprise Library, log4net or Ukadc.Diagnostics?
Is there a situation where one is more appropriate than the other? ... what would that be? ...
Rasorial asked 23/1, 2011 at 17:24
2
Solved
When using System.Diagnostics tracing, is there a significant (measurable) performance impact on not removing the "Default" trace listener on a production ASP.NET application in release mode, with ...
Tithable asked 27/2, 2013 at 18:43
1
Solved
I'm trying to replicate the following from the Event Viewer:
I'm having trouble with a few things.
Some of the names I get back are not the display names or friendly names. For example, for "M...
Squarrose asked 6/6, 2016 at 16:21
2
I have a certain framework of code, and I have a TraceListener defined for two reasons:
Back-compatibility with a lot of the old logging that was done via Trace.Write until we update it, and
It's...
Eellike asked 18/8, 2012 at 23:7
2
Solved
I need to get the ram memory and CPU usage during execution of a process (the process can run sometimes and over 30 minutes). I am able to get the free RAM but the CPU usage it's not correct, compa...
Stamin asked 28/10, 2015 at 9:34
2
How can I define a default TraceListener, that is automatically added to all TraceSources, in a net 4.0 c# project?
Currently I have to list every named TraceSource I use in the App.config file li...
Speculate asked 1/7, 2014 at 11:51
3
Solved
I am looking for a simple native .NET error logging solution. I am not interested in using log4net, Elmah or any other logging library. Below is what I am planning on using. My question is performa...
Ali asked 28/8, 2015 at 20:14
4
Solved
System.Diagnostics.Debug namespace vs Other logging solutions (log4net, MS Enterprise Library, etc.)
I'm currently investigating various logging possibilities for .net projects and I can't decide between System.Diagnostics.Debug/Trace features and third party libraries like log4net, MS Enterprise ...
Jesselyn asked 9/7, 2010 at 14:20
5
Solved
To solve an issue with sending e-mail through a smtp-server where e-mails are not getting sent, I was adviced to enable logging using System.Diagnosis.TextWriterTraceListener to trace the communica...
Setting asked 28/1, 2010 at 13:32
2
Solved
Is there a way to have Trace.CorrelationManager.ActivityId automatically included as a column in the WADLogsTable when using System.Diagnostics tracing with Microsoft.WindowsAzure.Diagnostics.Diagn...
Bidding asked 19/9, 2013 at 15:41
1
I'd like to be able to declare an EventSource which has a minimum of several methods which by default provide regular logging facilities.
e.g.
Info()
Warn()
Error()
In addition I'd like to be ...
Staminody asked 25/9, 2013 at 10:55
1
Solved
I have some code that starts a process by using Process.Start(ProcessStartInfo). I see from the documentation that this method can return null if an existing process is reused.
[Returns a] new P...
Consequent asked 11/12, 2014 at 16:12
3
Solved
Is there a standard way to log exceptions using ETW?
As far as I have seen the only way to do this is to log the message and possibly the inner exception message as there is not strongly typed par...
Christlike asked 27/9, 2013 at 14:29
1
Solved
Where do you see Trace.Write(""); logs while developing an MVC or WCF app? What is the correct place to look at?
Pueblo asked 13/8, 2014 at 12:28
2
Solved
I'm trying to run the Windows System Assessment Tool (winsat.exe) using the following code:
System.Diagnostics.Process WinSPro =
new System.Diagnostics.Process();
System.Diagnostics.ProcessStartI...
Jeu asked 30/5, 2013 at 2:56
4
Solved
The following code:
static void Main(string[] args)
{
TraceSource ts = new TraceSource("MyApplication");
ts.Switch = new SourceSwitch("MySwitch");
ts.Switch.Level = SourceLevels.All;
ts.List...
Opulence asked 8/11, 2012 at 12:6
1
Solved
How do I troubleshoot System.Diagnostics trace when it quietly fails to do anything at all?
Illbehaved asked 14/5, 2014 at 20:32
© 2022 - 2024 — McMap. All rights reserved.