Accessing appSettings config values from log4net config section

后端 未结 3 425

Does anyone know if it\'s possible to access key/values from the appSettings section of a config file from the log4net config section in the same file (without using code)?<

3条回答
  •  心在旅途
    2021-01-02 21:46

    You should work with log4net.Util.PatternString as the file type and refer to the app setting using %appSetting{SETTING}

    See code below:

    
        
        
    
    
        
        
        
    
    

    Hope this still helps :)

提交回复
热议问题