system.diagnostics - Using EventFlow to monitor ETW event on local machine

I am trying to set up a simple ETW and EventFlow example that allows specific ETW providers to be monitored. In this case the Service Control Manager ETW provider to monitor when Service Start and Stop messages are issued.I have the following input configuration for Tracing and ETW. "inputs": [{ "type": "Trace", "traceLevel": "Warning"},{ "type": "ETW", "providers": [ { "providerName": "Service Control Manager" } ]}]I have the following code which is starting up monitoring using EventFlow. static void Main(string[] args) {...Read more

system.diagnostics - How to invoke TraceListener.Write(object) through TraceSource

We have a custom TraceListener implementation which only logs when a specific object (LogMessage) is received. This all works well when using directly with the Trace.Write(object) method.Due to Performance reason, I want to separate the Listener, so all non-relevant Trace messages are not passed to the listener. Therefore I created a specific TraceSource whith only this listener attached. Now I struggle to pass my custom log object (LogMessage) to the listener using the TraceSource. The TraceSource.TraceData(TraceEventType, int, object) always ...Read more

system.diagnostics - I'm getting an ConfigurationErrorsException "Couldn't find constructor for class CustomListener"

This is related to custom a Systems.Diagnostics.TraceListener <system.diagnostics> <sources> <source name="SomeTraceSourceName" switchType="System.Diagnostics.SourceSwitch" switchName="SomeSwitchName"> <listeners> <clear /> <add name="CustomListener"/> </listeners> </source> </sources> <sharedListeners> <add name="CustomListener" type="CustomListener, MyAssembly" ...Read more

system.diagnostics - CLR Can't find a type, even though it's in the same assembly

I'm troubleshooting a WCF problem in our application, and turned on WCF tracing with the WCF Service Configuration Editor in VS 2010, which added the following sharedListener to the web.config: <sharedListeners> <add initializeData="D:\Logs\CRCCustomerService\Web_tracelog.svclog" type="System.Diagnostics.XmlWriterTraceListener, System, Version=, Culture=neutral, PublicKeyToken=b77a5c561934e089" name="ServiceModelTraceListener" traceOutputOptions="Timestamp"> <filter type="" /> </add&...Read more