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 the following settings. Minimum Version: […]
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 […]
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 PowerShell module biz.dfch.PS.System.Logging (available at […]
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 […]
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 lock for rolling the files […]
[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 configuration is defined in the […]