Worker Services Configure Serilog

A worker service is a type of Background Service that are generally use for long-running task. They can be seen as the equivalent of Windows Services in the .NET Framework, though a worker service is not limited to just windows. If you are building a worker service, then more than likely you will need to be able to write log data, be that general information of the worker services or perhaps just errors....

August 12, 2021 · Yunier

Configure Serilog Sub-Loggers Using XML App Settings

Serilog has a neat feature that allows you to configure sub-loggers. With this feature you can essentially have log specific instances running on your application. I recently had to configure a .NET Framework application to use two different sub-loggers and while I was able find many examples online on how to configure sub-loggers through AppSettings.json, I did not find any examples on how to configure them through AppSettings.config/App.config so I wanted to document that process on this post....

August 31, 2020 · Yunier