wcf trying to set up tracing to debug, not writing to log file

后端 未结 4 1886
盖世英雄少女心
盖世英雄少女心 2021-01-02 02:48

here\'s my web.config, running a WCF service in an application on IIS7, but nothing is being written to the specified file. permission on the file has been granted for ever

4条回答
  •  傲寒
    傲寒 (楼主)
    2021-01-02 03:18

    Yes - you've only just defined some .NET tracing source and listeners - but you haven't instructed WCF yet to actually do the tracing!

    You also need:

    
        
            
        
    
    

    These two sections of config combined should do it!

    In order to get your messages written back to the log file right away, you might want to add a setting to your section:

    
        ... everything you already have....
    
        
    
    

提交回复
热议问题