Skip to content

Tag: System.Diagnostics

The System.Diagnostics namespace provides classes that allow you to interact with system processes, event logs, and performance counters. [http://msdn.microsoft.com/en-us/library/system.diagnostics.aspx]

C#/.NET 0

Logging in PowerShell with System.Diagnostics.TraceSource and log4net

Microsoft .NET offers a very flexible logging system exposed via the System.Diagnostics namespace. Unfortunately (and not surprisingly), by default the pre-packaged listeners do not support writing messages to log4net directly. However, we can extend the logging outputs by implementing custom TraceListeners and when asking our favourite search engine for “TraceListener log4net” we find there are already plenty of implementations of […]