log4Net EventlogAppender does not work for Asp.Net 2.0 WebSite?

前端 未结 3 1144
情歌与酒
情歌与酒 2020-12-19 02:47

I have configured log4Net EventLogAppender for Asp.Net 2.0. However it does not log anything. I have following in my Web.Config.


    

        
3条回答
  •  慢半拍i
    慢半拍i (楼主)
    2020-12-19 03:37

    I can't tell you exactly what might be wrong, but if you go here you will see "How do I enable log4net internal debugging?" way down at the bottom. Log4net will not throw exceptions if something is wrong, so you must enable internal debugging in order to get information from log4net.

    http://logging.apache.org/log4net/release/faq.html

    Edit: Also see the quesiton directly after that one that explains potential hangups with using the EventLogAppender.

提交回复
热议问题