Have log4net use application config file for configuration data

前端 未结 5 1152
北恋
北恋 2020-12-23 19:34

I would like to store log4net config data in my application.config file. Based on my understanding of the documentation, I did the following:

  1. Add a referenc

5条回答
  •  温柔的废话
    2020-12-23 20:17

    From the config shown in the question there is but one appender configured and it is named "EventLogAppender". But in the config for root, the author references an appender named "ConsoleAppender", hence the error message.

提交回复
热议问题