External Config Files with elmah

后端 未结 2 1873
时光说笑
时光说笑 2021-02-12 04:38

I am using elmah (v1.1.11517.0) and am trying to move the config to an external source.

My config currently looks like this:



        
2条回答
  •  时光取名叫无心
    2021-02-12 05:07

    The reason why you can't use the configSource element for elmah is because elmah is defined as a sectionGroup. You can use the configSource on Sections. That is why it works on log4net.

    If you need the seperate config-file for web-deployment like Dan Atkinson you could do the following:

    
    
        
            
                

    The downside is that you need a config file for each section. But you often do that for web deployment projects.

提交回复
热议问题