How to use Log4Net utility for logging into database using c#
This question already has an answer here:
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