How to use Log4Net utility for logging into database using c#

This question already has an answer here:

  • Storing Log4Net Messages in SQL Server 2 answers

  • You can have a look here, I think this is exactly what you need.

    Note that if you want to use log4net from a client application and write to a database, you might want to consider to put a service in between. In that case you can easily write your own log4net adapter that calls your LogService (fire and forget) that logs into your database (probably using MSMQ).

    链接地址: http://www.djcxy.com/p/70198.html

    上一篇: 单元测试自定义UIView

    下一篇: 如何使用Log4Net实用程序使用c#登录到数据库