8

有没有人对 Gui 编辑 log4net 配置文件有任何建议。我们有该领域的人需要能够增加、减少或专门化日志记录,但不具备在 XML 中搞砸的背景。

4

2 回答 2

3

几年前,我使用这个http://www.codeproject.com/KB/cs/Log4netEditor.aspx为 log4net 提供了一个简单的 GUI。我最近没有使用它,所以我不知道它是否仍在使用最新版本的 log4net。

于 2009-05-03T21:20:10.423 回答
1

It's not that hard to make a simple .NET Winforms app that can read a .xml file and allow the user to edit it. As it will only be used by users with specific needs you can just put in the necessary drop-down menus, ticks boxes or edit boxes to allow then to change the values needed.

You can then do some basic error/range checking to make sure they can't enter invalid values.

于 2009-11-02T10:17:35.030 回答