项目作者: aimenux

项目描述 :
Using multiple logging frameworks (native and third party) in console applications
高级语言: C#
项目地址: git://github.com/aimenux/ConsoleLoggingDemo.git
创建时间: 2021-02-22T11:12:06Z
项目社区:https://github.com/aimenux/ConsoleLoggingDemo

开源协议:

下载


.NET

ConsoleLoggingDemo

  1. Using multiple logging frameworks (native and third party) in console applications

In this repo, i m using multiple logging frameworks in order to enable logging in console applications.

Logging frameworks used in the demo are :

:pushpin: Native microsoft tooling

:pushpin: Serilog third party tooling

:pushpin: NLog third party tooling

For Native and Serilog frameworks, i m providing two configuration ways :

:writing_hand: Json : json config driven way

:writing_hand: Fluent : hard code driven way

For NLog framework, i m providing one configuration way :

:writing_hand: xml : xml config driven way

Logging targets used in the demo are :

:pushpin: file target

:pushpin: console target

:pushpin: application insights target

Tools : net 8.0, nlog, serilog