Install Log4Net on UWP Application

As I was working on a project, I had to check if we can use Log4Net for an UWP Application which will run on a Windows 10 IoT device. For setting up the UWP Application, I used Visual Studio 2015 Community Edition. In the new project dialog I chose Blank App (Universal Windows) and used […]

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 […]

The Case of the mystery log4net logging Behaviour when using PowerShell and C# with multiple Configurations

This blog post is about log4net which switches log configurations within a process as soon as two components are using their own log4net configuration. As you can read from our numerous blogs we are using PowerShell in combination with C# quite extensively. In addition we are heavily relying on log4net for logging puposes (see our […]

Logging to Graylog2 using Gelf4Net via Powershell

Graylog2 is a powerful and scalable open source log management and data analytics system on top of elasticsearch. Since our logging module is based on log4net, the integration of Graylog2 as log destination is very easy thanks to the available gelf4net adapter. The gelf4net project provides a log4net adapter that formats logs to the GELF […]

biz.dfch.PS.System.Logging now supports log4net

I changed the way the biz.dfch.PS.System.Logging module implements its file writing by using log4net as the file logger. It makes use of the (static) FileAppender as the RollingFileAppender does not support concurrent access when rolling log files. So the log roll over is still handled within the PowerShell module directly (until I implement a custom […]

Module: biz.dfch.PS.System.Logging

[UPDATE 2015-12-22] The module is now available on PowerShell Gallery. [UPDATE 2014-11-15] The module is now available on NuGet. This module allows you to have a unified logging in PowerShell and all your scripts. It depends on log4net and thus provides great flexibility on how and where you log. Basic usage is as follows: Main […]