What would a Log4Net Wrapper class look like?

后端 未结 9 1046
失恋的感觉
失恋的感觉 2020-12-02 05:19

I have been looking for a logging framework for .net (c#) and decided to give log4net a go after reading up on a few question/answer threads here on stackoverflow. I see peo

9条回答
  •  慢半拍i
    慢半拍i (楼主)
    2020-12-02 05:47

    I know this answer is late, but it may help someone in the future.

    It sounds like you want a programmatic API that XQuiSoft Logging gives you. You don't have to specify which logger you want with XQuiSoft. it is as simple as this:

    Log.Write(Level.Verbose, "source", "category", "your message here");

    Then via configuration you direct messages by source, category, level, or any other custom filter to different locations (files, emails, etc...).

    See this article for an introduction.

提交回复
热议问题