Is there a logging facade for the .NET world?

后端 未结 7 759
情深已故
情深已故 2020-12-13 06:17

I\'m somewhat new to the .NET stack and I was wondering if there is an equivalent to slf4j for the .NET platform. For me, logging to a Facade and being able to swap out logg

7条回答
  •  离开以前
    2020-12-13 06:52

    Take a look at Castle Windsor Logging Facility.

    Base code is here. Log4net adapter here. NLog adapter here.

    Added adapter for Serilog.

    Without the adapters there is suppor for ConsoleLogger, DiagnosticsLogger, StreamLogger and NullLogger.

    It's pretty easy to write adapters to any other logging framework.

提交回复
热议问题